New shortcut functions Button - B, Btn, Butt. InputText - I. Button Text converted to string when initialized
This commit is contained in:
parent
644b597263
commit
816a7341c5
4 changed files with 37 additions and 8 deletions
|
@ -603,9 +603,10 @@ class InputText(Element):
|
|||
super().__del__()
|
||||
|
||||
|
||||
# ------------------------- INPUT TEXT Element lazy functions ------------------------- #
|
||||
# ------------------------- INPUT TEXT lazy functions ------------------------- #
|
||||
In = InputText
|
||||
Input = InputText
|
||||
I = InputText
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------- #
|
||||
|
@ -1334,7 +1335,7 @@ class Button(Element):
|
|||
self.FileTypes = file_types
|
||||
self.TKButton = None
|
||||
self.Target = target
|
||||
self.ButtonText = button_text
|
||||
self.ButtonText = str(button_text)
|
||||
self.ButtonColor = button_color if button_color else DEFAULT_BUTTON_COLOR
|
||||
self.TextColor = self.ButtonColor[0]
|
||||
self.BackgroundColor = self.ButtonColor[1]
|
||||
|
@ -1530,6 +1531,13 @@ class Button(Element):
|
|||
super().__del__()
|
||||
|
||||
|
||||
# ------------------------- Button lazy functions ------------------------- #
|
||||
B = Button
|
||||
Btn = Button
|
||||
Butt = Button
|
||||
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------- #
|
||||
# ButtonMenu Class #
|
||||
# ---------------------------------------------------------------------- #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue