ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Tool_Box/GUI_Base.py
Revision: 680
Committed: Mon May 4 19:46:21 2020 UTC (5 years, 10 months ago) by nino.borges
Content type: text/x-python
File size: 535 byte(s)
Log Message:
Moved GUI_Base to the toolbox folder

File Contents

# User Rev Content
1 ninoborges 8 """
2     Created by Emanuel Borges
3     <DATE HERE>
4    
5     """
6    
7    
8     import sys, os, wx
9    
10    
11    
12     class MyFrame(wx.Frame):
13     def __init__(self, parent, ID, title, pos=wx.DefaultPosition):
14     wx.Frame.__init__(self, parent, ID, title, pos)
15     #db = ConcordanceConnection()
16    
17    
18     class MyApp(wx.App):
19     def OnInit(self):
20     self.frame = MyFrame(None, -1, "Something")
21     self.frame.Show(True)
22     self.SetTopWindow(self.frame)
23     return True
24    
25    
26     if __name__ == '__main__':
27     app = MyApp(0)
28     app.MainLoop()