Ejemplo n.º 1
0
 def _build_buttons(self):
     buttons = [
         Padding.line_break(""),
         Color.button_secondary(Button("Quit", self.cancel),
                                focus_map='button_secondary focus'),
     ]
     return Pile(buttons)
Ejemplo n.º 2
0
 def _build_buttons(self):
     buttons = [
         Color.button_secondary(cancel_btn(label="Quit",
                                           on_press=self.cancel),
                                focus_map="button_secondary focus")
     ]
     return Pile(buttons)
 def _build_buttons(self):
     buttons = [
         Color.button_secondary(
             cancel_btn(label="Quit", on_press=self.cancel),
             focus_map="button_secondary focus")
     ]
     return Pile(buttons)
Ejemplo n.º 4
0
 def _build_buttons(self):
     buttons = [
         Padding.line_break(""),
         Color.button_secondary(
             Button("Quit", self.cancel),
             focus_map='button_secondary focus'),
     ]
     return Pile(buttons)
Ejemplo n.º 5
0
 def _build_buttons(self):
     buttons = [
         Color.button_primary(Button("Confirm", self.submit),
                              focus_map='button_primary focus'),
         Color.button_secondary(Button("Cancel", self.cancel),
                                focus_map='button_secondary focus')
     ]
     return Pile(buttons)
 def _build_buttons(self):
     buttons = [
         Color.button_primary(
             Button("Confirm", self.submit),
             focus_map='button_primary focus'),
         Color.button_secondary(
             Button("Cancel", self.cancel),
             focus_map='button_secondary focus')
     ]
     return Pile(buttons)