Beispiel #1
0
 def ask_exit(self, event):
     pl = str(self.textbox_description.GetValue())
     po = str(self.textbox_value.GetValue())
     if pl == u'' and po == u'R$ 0,00':
         self.exit(None)
         return
     dialogs.Ask(self, u"Sair", 91)
Beispiel #2
0
 def ask_clean(self, event):
     """
     Confirma se o usuario quer apagar tudo
     :param event:
     :return:
     """
     dialogs.Ask(self, u"Apagar Tudo", 1)
Beispiel #3
0
 def ask_exit(self, event):
     pl = str(self.textbox_description.GetValue())
     po = str(self.textbox_id.GetValue())
     pk = str(self.textbox_amount.GetValue())
     if pl == '' and po == '0,00' and (pk == '' or pk == '0'):
         self.Close()
         return
     dialogs.Ask(self, u"Sair", 91)
Beispiel #4
0
    def ask_end(self, event):

        ask_option = -1
        if self.transaction_type is EXPENSE:
            ask_option = 12
        elif self.transaction_type is INCOME:
            ask_option = 16

        dialogs.Ask(self, u"Registrar Transação", ask_option)
Beispiel #5
0
def main():
    # Initialize wx App
    app = wx.App()
    app.MainLoop()

    if os.path.isfile('.lastapp'):
        with open('.lastapp', 'r') as lastfile:
            lastapp = lastfile.read()
    else:
        lastapp = ''

    # Call Dialog
    appname = dialogs.Ask(message='What application is being tested?',
                          default_value=lastapp)
    testapp(appname, standalone=True)
Beispiel #6
0
 def ask_exit(self, event):
     dialogs.Ask(self.frame, u'Sair', 90)
Beispiel #7
0
 def ask_delete(self, event):
     dialogs.Ask(self, u'Finalizar Cadastro', 14)
Beispiel #8
0
 def ask_delete(self, event):
     dialogs.Ask(self, u'Apagar Cliente', 24)
 def ask_delete_waste(self, event):
     boom = self.list_wastes.GetSelection()
     if boom == self.list_wastes.GetRootItem():
         return
     dialogs.Ask(self, u"Apagar Registro", 23)
Beispiel #10
0
 def ask_clean(self, event):
     dialogs.Ask(self, u"Apagar Tudo", 1)
Beispiel #11
0
 def ask_end(self, event):
     dialogs.Ask(self, u'Finalizar Cadastro', 15)
Beispiel #12
0
 def ask_exit(self, event):
     if self.list_update.GetItemCount() == 0:
         self.exit(None)
         return
     dialogs.Ask(self, u'Sair', 91)
Beispiel #13
0
 def ask_delete(self, event):
     dialogs.Ask(self, u'Apagar Produto', 25)
Beispiel #14
0
 def ask_exit(self, event):
     if self.textbox_client_name.GetValue():
         dialogs.Ask(self, u'Sair', 91)
     else:
         self.Close()
Beispiel #15
0
 def ask_exit(self, event=None):
     if self.exit_interrupted:
         self.exit()
     dialogs.Ask(self, u'Sair', 90)
Beispiel #16
0
 def ask_sale_delete(self, event):
     dialogs.Ask(self, u'Apagar', 28)
Beispiel #17
0
 def ask_exit(self, event):
     if self.editable:
         dialogs.Ask(self, u'Sair', 91)
     elif not self.editable:
         self.exit(None)
Beispiel #18
0
 def ask_end(self, event):
     dialogs.Ask(self, u"Finalizar Registro", 13)
Beispiel #19
0
 def ask_delete_income(self, event):
     boom = self.list_incomes.GetSelection()
     if boom == self.list_incomes.GetRootItem():
         return
     dialogs.Ask(self, u"Apagar Ganho", 26)
Beispiel #20
0
 def ask_exit(self, event):
     if self.editable == 1:
         dialogs.Ask(self, u'Sair', 91)
     elif self.editable == 0:
         self.Close()
Beispiel #21
0
 def ask_delete_expense(self, event):
     boom = self.list_expenses.GetSelection()
     if boom == self.list_expenses.GetRootItem():
         return
     dialogs.Ask(self, u"Apagar Gasto", 22)
Beispiel #22
0
 def ask_clean(self, event):
     dialogs.Ask(self, u'Recomeçar', 1)
 def ask_remove(self, event):
     boom = self.list_edited_data.GetSelection()
     key2 = str(self.list_edited_data.GetItemText(boom, 0))
     if boom == self.list_edited_data.GetRootItem() or len(key2) == 10:
         return
     dialogs.Ask(self, u"Restauração", 30)
Beispiel #24
0
 def ask_delete(self, event):
     if self.notebook_lists.GetSelection():
         dialogs.Ask(self, u'Apagar Transação', 26)
     else:
         dialogs.Ask(self, u'Apagar Transação', 22)
Beispiel #25
0
 def ask_delete_sale(self, event):
     boom = self.list_sales.GetSelection()
     if boom == self.list_sales.GetRootItem():
         return
     dialogs.Ask(self, u"Apagar Venda", 21)