| 1 |
ninoborges |
8 |
"""testing"""
|
| 2 |
|
|
|
| 3 |
|
|
import wx
|
| 4 |
|
|
|
| 5 |
|
|
|
| 6 |
|
|
|
| 7 |
|
|
|
| 8 |
|
|
|
| 9 |
|
|
|
| 10 |
|
|
class MyFrame(wx.Frame):
|
| 11 |
|
|
def __init__(self, parent, ID, title, pos=wx.DefaultPosition):
|
| 12 |
|
|
wx.Frame.__init__(self, parent, ID, title, pos)
|
| 13 |
|
|
self.panel = wx.Panel(self,-1)
|
| 14 |
|
|
#mainSizer = wx.BoxSizer(wx.VERTICAL)
|
| 15 |
|
|
self.oKButton = wx.Button(self.panel, wx.ID_OK)
|
| 16 |
|
|
self.oKButton.SetDefault()
|
| 17 |
|
|
#self.oKButton.SetSize(self.oKButton.GetBestSize())
|
| 18 |
|
|
self.cancelButton = wx.Button(self.panel, wx.ID_CANCEL)
|
| 19 |
|
|
#self.cancelButton.SetSize(self.cancelButton.GetBestSize())
|
| 20 |
|
|
self.buttonSizer = wx.BoxSizer(wx.HORIZONTAL)
|
| 21 |
|
|
self.buttonSizer.Add(self.oKButton)
|
| 22 |
|
|
self.buttonSizer.Add(self.cancelButton)
|
| 23 |
|
|
|
| 24 |
|
|
#mainSizer.Add(self.buttonSizer, 0, wx.ALL, 20)
|
| 25 |
|
|
self.panel.SetSizer(self.buttonSizer)
|
| 26 |
|
|
|
| 27 |
|
|
|
| 28 |
|
|
|
| 29 |
|
|
|
| 30 |
|
|
|
| 31 |
|
|
class MyApp(wx.App):
|
| 32 |
|
|
def OnInit(self):
|
| 33 |
|
|
self.frame = MyFrame(None, -1, "NativeProduction BETA v.04 CSV Build UNSTABLE FOR TESTING ONLY!")
|
| 34 |
|
|
self.frame.Show(True)
|
| 35 |
|
|
self.SetTopWindow(self.frame)
|
| 36 |
|
|
return True
|
| 37 |
|
|
|
| 38 |
|
|
|
| 39 |
|
|
if __name__ == '__main__':
|
| 40 |
|
|
app = MyApp()
|
| 41 |
|
|
app.MainLoop() |