Lines Matching refs:wx
12 import wx
17 class RootFrame(wx.Frame):
24 wx.Frame.__init__(self, parent, id, title)
26 (self.screen_width, self.screen_height) = wx.GetDisplaySize()
39 self.panel = wx.Panel(self, size=(self.screen_width, self.screen_height))
42 self.scroll = wx.ScrolledWindow(self.panel)
48 self.scroll_panel = wx.Panel(self.scroll, size=(self.screen_width - 15, self.screen_height / 2))
49 self.scroll_panel.Bind(wx.EVT_PAINT, self.on_paint)
50 self.scroll_panel.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
51 self.scroll_panel.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
52 self.scroll.Bind(wx.EVT_PAINT, self.on_paint)
53 self.scroll.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
54 self.scroll.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
59 …self.scroll_panel.SetDimensions(-1, -1, self.width_virtual, self.height_virtual, wx.SIZE_USE_EXIST…
90 top_color = wx.Colour(r, g, b)
91 brush = wx.Brush(top_color, wx.SOLID)
98 color = wx.Colour(r, g, b)
99 brush = wx.Brush(color, wx.SOLID)
109 dc = wx.PaintDC(self.scroll_panel)
131 self.txt = wx.StaticText(self.panel, -1, txt, (0, (self.screen_height / 2) + 50))
177 if key == wx.WXK_RIGHT:
179 elif key == wx.WXK_LEFT:
181 elif key == wx.WXK_DOWN:
183 elif key == wx.WXK_UP: