-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
37 lines (26 loc) · 709 Bytes
/
__init__.py
File metadata and controls
37 lines (26 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python
# -*- coding: utf-8 -*-
import wx
from MoveSlider import MoveSlider
from SlideFrame import SlideFrame
class MyFrame(wx.Frame):
def __init__(self, P = None):
super(MyFrame, self).__init__(P)
self.SetTitle("Strongheart's Slider Puzzle")
pane = MoveSlider(self)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(pane, 1, wx.EXPAND, wx.ALL)
self.SetBackgroundColour(wx.CYAN)
self.SetSizer(sizer)
self.pane = pane
self.sizer = sizer
self.SetSize(wx.GetDisplaySize())
class App(wx.App):
def __init__(self):
super(App, self).__init__()
#frame = MyFrame(None)
frame = SlideFrame(None,4,5,20)
frame.Show(True)
if __name__ == '__main__':
app = App()
app.MainLoop()