mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
[ci] auto-format
This commit is contained in:
parent
6e3dbf08ae
commit
0839999901
1 changed files with 29 additions and 30 deletions
|
|
@ -1096,42 +1096,41 @@ class PluginWindow(popup.PopupWindow):
|
||||||
|
|
||||||
if to_draw_button1:
|
if to_draw_button1:
|
||||||
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
||||||
position=(
|
position=(
|
||||||
width * (
|
width * (
|
||||||
0.1 if self.plugin.is_installed and has_update else
|
0.1 if self.plugin.is_installed and has_update else
|
||||||
0.25 if self.plugin.is_installed else
|
0.25 if self.plugin.is_installed else
|
||||||
0.4), pos),
|
0.4), pos),
|
||||||
size=button_size,
|
size=button_size,
|
||||||
on_activate_call=button1_action,
|
on_activate_call=button1_action,
|
||||||
color=b1_color,
|
color=b1_color,
|
||||||
textcolor=b_text_color,
|
textcolor=b_text_color,
|
||||||
button_type='square',
|
button_type='square',
|
||||||
text_scale=1,
|
text_scale=1,
|
||||||
label=button1_label)
|
label=button1_label)
|
||||||
|
|
||||||
if self.plugin.is_installed:
|
if self.plugin.is_installed:
|
||||||
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
||||||
position=(width * (0.4 if has_update else 0.55), pos),
|
position=(width * (0.4 if has_update else 0.55), pos),
|
||||||
size=button_size,
|
size=button_size,
|
||||||
on_activate_call=button2_action,
|
on_activate_call=button2_action,
|
||||||
color=b2_color,
|
color=b2_color,
|
||||||
textcolor=b_text_color,
|
textcolor=b_text_color,
|
||||||
button_type='square',
|
button_type='square',
|
||||||
text_scale=1,
|
text_scale=1,
|
||||||
label=button2_label)
|
label=button2_label)
|
||||||
|
|
||||||
if has_update:
|
if has_update:
|
||||||
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
||||||
position=(width * 0.7, pos),
|
position=(width * 0.7, pos),
|
||||||
size=button_size,
|
size=button_size,
|
||||||
on_activate_call=button3_action,
|
on_activate_call=button3_action,
|
||||||
color=b3_color,
|
color=b3_color,
|
||||||
textcolor=b_text_color,
|
textcolor=b_text_color,
|
||||||
autoselect=True,
|
autoselect=True,
|
||||||
button_type='square',
|
button_type='square',
|
||||||
text_scale=1,
|
text_scale=1,
|
||||||
label=button3_label)
|
label=button3_label)
|
||||||
|
|
||||||
|
|
||||||
bui.containerwidget(edit=self._root_widget,
|
bui.containerwidget(edit=self._root_widget,
|
||||||
on_cancel_call=self._cancel,
|
on_cancel_call=self._cancel,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue