def __init__(self, **kwargs): super(ScreenRemoveData, self).__init__(**kwargs) global layout_remove_data layout_remove_data.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Excluir dados', pos_hint={'center_x': .3, 'center_y': .9})) layout_remove_data.name = DefaultTextInput(screen_size=size_screen, hint_text='Apagar dados de', pos_hint={'center_x': .5, 'center_y': .73}, icon_left='account-remove') layout_remove_data.add_widget(layout_remove_data.name) layout_remove_data.add_widget(DefaultButton(screen_size=size_screen, text='Excluir dados do usuário', on_release=self.delete_data_confirmation, pos_hint={'center_x': .5, 'center_y': .63})) layout_remove_data.label = DefaultLabel() layout_remove_data.add_widget(layout_remove_data.label) layout_remove_data.add_widget(DefaultButton(screen_size=size_screen, text='Apagar todos os dados', on_release=self.delete_all_data_confirmation, pos_hint={'center_x': .5, 'center_y': .07})) self.add_widget(layout_remove_data)
def __init__(self, **kwargs): super(ScreenTotalDebts, self).__init__(**kwargs) global layout_total_debts layout_total_debts.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Total de dívidas', pos_hint={'center_x': .36, 'center_y': .9})) layout_total_debts.search = DefaultTextInput(screen_size=size_screen, hint_text='Nome do cliente', pos_hint={'center_x': .5, 'center_y': .73}, icon_left='account') layout_total_debts.add_widget(layout_total_debts.search) layout_total_debts.infos = DefaultLabel(pos_hint={'center_x': .5, 'center_y': .58}, halign='center') layout_total_debts.add_widget(layout_total_debts.infos) layout_total_debts.add_widget(DefaultButton(screen_size=size_screen, text='Procurar', on_release=self.search, pos_hint={'center_x': .5, 'center_y': .43})) self.add_widget(layout_total_debts)
def __init__(self, **kwargs): super(ScreenPayment, self).__init__(**kwargs) global layout_payment layout_payment.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Pagamento', pos_hint={'center_x': .27, 'center_y': .9})) layout_payment.input_name = DefaultTextInput(screen_size=size_screen, hint_text='Pagador', pos_hint={'center_x': .5, 'center_y': .73}, icon_left='account') layout_payment.add_widget(layout_payment.input_name) layout_payment.input_payment = DefaultTextInput(screen_size=size_screen, hint_text='Valor do pagamento', pos_hint={'center_x': .5, 'center_y': .63}, icon_left='cash-minus') layout_payment.add_widget(layout_payment.input_payment) layout_payment.label = DefaultLabel(pos_hint={'center_x': .5, 'center_y': .48}) layout_payment.add_widget(layout_payment.label) layout_payment.add_widget(DefaultButton(screen_size=size_screen, text='Confirmar', on_release=self.confirmation, pos_hint={'center_x': .5, 'center_y': .33})) self.add_widget(layout_payment)
def __init__(self, **kwargs): super(ScreenAllDebts, self).__init__(**kwargs) global layout_all_debts layout_all_debts.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Total de dívidas', pos_hint={'center_x': .35, 'center_y': .9})) layout_all_debts.add_widget(DefaultButton(screen_size=size_screen, text='Pesquisar', on_release=self.search_all_debts, pos_hint={'center_x': .5, 'center_y': .73})) layout_all_debts.infos = DefaultLabel(text='O valor total de dívida é:', pos_hint={'center_x': .5, 'center_y': .6}) layout_all_debts.add_widget(layout_all_debts.infos) self.add_widget(layout_all_debts)
def __init__(self, **kwargs): super(ScreenSearch, self).__init__(**kwargs) global layout_search layout_search.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Pesquisar por cliente', pos_hint={'center_x': .45, 'center_y': .9})) layout_search.add_widget(DefaultButtonMenu(text='Total de dívidas', on_release=self.change_screen_for_total_debts, pos_hint={'center_x': .5, 'center_y': .63}, icon='cash-multiple')) layout_search.add_widget(DefaultButtonMenu(text='Extrato de vendas', on_release=self.change_screen_for_extract, pos_hint={'center_x': .5, 'center_y': .49}, icon='text-box')) self.add_widget(layout_search)
def __init__(self, **kwargs): super(ScreenExtract, self).__init__(**kwargs) global layout_extract global widget_for_scroll_extract layout_extract.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Extrato', pos_hint={'center_x': .2, 'center_y': .9})) layout_extract.search = DefaultTextInput(screen_size=size_screen, hint_text='Nome do cliente', pos_hint={'center_x': .5, 'center_y': .73}, icon_left='account') layout_extract.add_widget(layout_extract.search) layout_extract.add_widget(DefaultButton(screen_size=size_screen, text='Pesquisar', on_release=self.search_extract, pos_hint={'center_x': .5, 'center_y': .63})) layout_extract.label_of_client = DefaultLabel(text='Cliente: ', size_hint=(1, None), height=size_screen[1] / 13, pos_hint={'center_x': .5, 'center_y': .54}) layout_extract.add_widget(layout_extract.label_of_client) scroll_layout_extract = ScrollView(pos_hint={'center_x': .5, 'center_y': .3}, size_hint=(.9, .4)) scroll_layout_extract.add_widget(widget_for_scroll_extract) layout_extract.add_widget(scroll_layout_extract) layout_extract.total_debts = DefaultLabel(text='Total: R$', size_hint=(1, None), height=size_screen[1] / 13, pos_hint={'center_x': .5, 'center_y': .05}) layout_extract.add_widget(layout_extract.total_debts) self.add_widget(layout_extract)
def __init__(self, **kwargs): super(ScreenAllDebtors, self).__init__(**kwargs) global scroll_layout_all_debtors global widget_for_scroll_all_debtors global layout_all_debtors widget_for_scroll_all_debtors.clear_widgets() widget_for_scroll_all_debtors.size_hint_y = None layout_all_debtors.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Todos os devedores', pos_hint={'center_x': .42, 'center_y': .9})) layout_all_debtors.add_widget(DefaultButton(screen_size=size_screen, text='Pesquisar', on_release=self.search_all_debtors, pos_hint={'center_x': .5, 'center_y': .73})) layout_all_debtors.add_widget(scroll_layout_all_debtors) self.add_widget(layout_all_debtors)
def __init__(self, **kwargs): super(ScreenRegister, self).__init__(**kwargs) global layout_register layout_register.add_widget(DefaultHeadLabel(screen_size=size_screen, text='Cadastro', pos_hint={'center_x': .25, 'center_y': .9})) layout_register.buyer = DefaultTextInput(screen_size=size_screen, hint_text='Comprador', pos_hint={'center_x': .5, 'center_y': .73}, icon_left='account') layout_register.add_widget(layout_register.buyer) layout_register.product = DefaultTextInput(screen_size=size_screen, hint_text='Produto', pos_hint={'center_x': .5, 'center_y': .63}, icon_left='basket') layout_register.add_widget(layout_register.product) layout_register.price = DefaultTextInput(screen_size=size_screen, hint_text='Preço', pos_hint={'center_x': .5, 'center_y': .53}, icon_left='cash-100') layout_register.add_widget(layout_register.price) layout_register.error = DefaultLabel(pos_hint={'center_x': .5, 'center_y': .38}) layout_register.add_widget(layout_register.error) layout_register.add_widget(DefaultButton(screen_size=size_screen, text='CONFIRMAR', on_release=self.confirm, pos_hint={'center_x': .5, 'center_y': .23})) self.add_widget(layout_register)