def test(): win = Window(title="Frame") frm = Frame() frm.place_column([Label("This is"), Label("A frame")], left=0, top=0) frm.shrink_wrap() win.place(frm, left=30, top=30) win.shrink_wrap(padding=(30, 30)) win.show()
self.general.window.on_quit(wx.EVT_CLOSE) sys.exit() def create_thread_communicator(self, ip, port): """ The function receives a port and ip and creates the thread communicator. """ self.general.thread_com = ThreadCommunication(self.general, ip, port) self.general.thread_com.start() #-----Main Code-----# general = GeneralVariables() main = Main(general) # Start the GUI of the client. general.app = wx.App() # Create the main frame of the GUI. general.window = Frame(None, -1, "CodeDup", general) # Start the main code of the client. main.start() # Start the GUI main loop. general.app.MainLoop()
if self.general.window.quit: sys.exit() def create_thread_communicator(self, ip, port): """ The function receives a port and ip and creates the thread communicator. """ self.general.thread_com = ThreadCommunication(self.general, ip, port) self.general.thread_com.start() #-----Main Code-----# general = GeneralVariables() main = Main(general) # Start the GUI of the client. general.app = wx.App() # Create the main frame of the GUI. general.window = Frame(None, -1, "Project", general) # Start the main code of the client. main.start() # Start the GUI main loop. general.app.MainLoop()