コード例 #1
0
ファイル: 30-frame.py プロジェクト: tomihasa/pygui
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()
コード例 #2
0
ファイル: Client.py プロジェクト: Maor2871/CodeDup
            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()
コード例 #3
0
ファイル: Client.py プロジェクト: Maor2871/Code
            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()