示例#1
0
    def OnConnect(self, event):
        dlg = ConnectDialog(self)
        ret = dlg.ShowModal()
        dlg.Destroy()

        if(ret == wxID_OK):
            self.__configuration.set_network_host(dlg.get_host())
            self.__configuration.set_network_port(dlg.get_port())
            self.__configuration.set_user_username(dlg.get_username())

            self.__connect((dlg.get_host(), dlg.get_port()), (dlg.get_username(), dlg.get_password()))