def __init__(self, parent, message, caption='Informação', style=wx.OK | wx.CENTRE | wx.ICON_INFORMATION, pos=wx.DefaultPosition): super(MessageBox, self).__init__(parent, message, caption, style, pos) self.SetIcon(get_icon())
def __init__(self, parent=None): super(ConfigView, self).__init__(parent) self.SetIcon(get_icon()) if config.load(): self.text_db_host.SetValue(config.db_host) self.text_db_port.SetValue(config.db_port) self.text_db_name.SetValue(config.db_name) self.text_db_username.SetValue(config.db_user) self.text_db_password.SetValue(config.db_password)
def __init__(self, parent): super(PersonGroupSearch, self).__init__(parent) self.SetIcon(get_icon()) self.data_search.ClearColumns() self.data_search.DeleteAllItems() self.data_search.AppendTextColumn('Grid', flags=wx.COL_HIDDEN) self.data_search.AppendTextColumn('Código', width=80) self.data_search.AppendTextColumn('Nome', width=190, align=wx.ALIGN_CENTER) self.text_search.SetFocus() self.search_options = ['A'] self.model = PersonGroup
def __init__(self, parent=None): super(MainView, self).__init__(parent) self.SetIcon(get_icon()) self.SetSize((800, 600)) self.Maximize() self.Centre() lic = License() lic.load() if lic.load(): self.status_bar.SetStatusText( f"Software registrado para : {lic.company}") else: from wx import MessageBox, ICON_ERROR MessageBox( 'Ocorreu um erro ao validar a licença do sistema , o sistema será encerrado agora !', 'Erro no licenciamento', style=ICON_ERROR)
def __init__(self, parent=None): super(ClientView, self).__init__(parent) self.SetIcon(get_icon()) self.client = None self.new_client(None)