Skip to content

Commit df69e7b

Browse files
committed
renamed pygame_gui style
1 parent d112f9c commit df69e7b

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

pygame_matplotlib/gui_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import matplotlib
1111
matplotlib.use('module://pygame_matplotlib.backend_pygame')
1212

13-
class PlotWindow(pygame_gui.elements.ui_window.UIWindow):
13+
class UIPlotWindow(pygame_gui.elements.ui_window.UIWindow):
1414
def __init__(
1515
self,
1616
rect: pygame.Rect,

test_gui_window.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
"""Simple script to test from https://pygame-gui.readthedocs.io/en/latest/quick_start.html"""
22

3-
from typing import Tuple, Union
3+
44
import pygame
55
import pygame_gui
6-
from pygame_gui.core.interfaces.manager_interface import IUIManagerInterface
7-
from pygame_gui.core.ui_element import ObjectID
8-
9-
from pygame_gui.elements.ui_window import UIWindow
10-
from pygame_gui.core.utility import basic_blit
11-
126

137
import matplotlib.pyplot as plt
148

15-
from pygame_matplotlib.gui_window import PlotWindow
9+
from pygame_matplotlib.gui_window import UIPlotWindow
1610

1711

1812
pygame.init()
@@ -35,7 +29,7 @@
3529
fig2.canvas.draw()
3630

3731

38-
plot_window = PlotWindow(
32+
plot_window = UIPlotWindow(
3933
rect=pygame.Rect((350, 275), (300, 200)),
4034
manager=manager,
4135
figuresurface=fig,
@@ -45,11 +39,11 @@
4539

4640

4741

48-
plot_window2 = PlotWindow(
49-
rect=pygame.Rect((350, 275), (300, 200)),
42+
plot_window2 = UIPlotWindow(
43+
rect=pygame.Rect((350, 275), (200, 200)),
5044
manager=manager,
5145
figuresurface=fig2,
52-
resizable=True
46+
resizable=False
5347
)
5448

5549

0 commit comments

Comments
 (0)