mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Build Fixing
This commit is contained in:
parent
62f42f5e49
commit
af95af8cc2
1 changed files with 28 additions and 22 deletions
|
|
@ -167,31 +167,34 @@ class PluginWindow(ba.Window):
|
||||||
button1_action = ba.Call(loop.create_task, plugin.install())
|
button1_action = ba.Call(loop.create_task, plugin.install())
|
||||||
# button1_action = asyncio.run, plugin.install
|
# button1_action = asyncio.run, plugin.install
|
||||||
button3_label = "OK"
|
button3_label = "OK"
|
||||||
button3_action = lambda: None
|
|
||||||
|
|
||||||
button1 = ba.buttonwidget(parent=self._root_widget,
|
# button1 =
|
||||||
position=(width * 0.1, pos),
|
ba.buttonwidget(parent=self._root_widget,
|
||||||
size=button_size,
|
position=(width * 0.1, pos),
|
||||||
on_activate_call=button1_action,
|
size=button_size,
|
||||||
color=b_color,
|
on_activate_call=button1_action,
|
||||||
textcolor=b_text_color,
|
color=b_color,
|
||||||
button_type='square',
|
textcolor=b_text_color,
|
||||||
text_scale=1,
|
button_type='square',
|
||||||
label=button1_label)
|
text_scale=1,
|
||||||
|
label=button1_label)
|
||||||
|
|
||||||
if plugin.installed:
|
if plugin.installed:
|
||||||
button2 = ba.buttonwidget(parent=self._root_widget,
|
# button2 =
|
||||||
position=(width * 0.4, pos),
|
ba.buttonwidget(parent=self._root_widget,
|
||||||
size=button_size,
|
position=(width * 0.4, pos),
|
||||||
on_activate_call=button2_action,
|
size=button_size,
|
||||||
color=b3_color,
|
on_activate_call=button2_action,
|
||||||
textcolor=b_text_color,
|
color=b3_color,
|
||||||
button_type='square',
|
textcolor=b_text_color,
|
||||||
text_scale=1,
|
button_type='square',
|
||||||
label=button2_label)
|
text_scale=1,
|
||||||
|
label=button2_label)
|
||||||
|
|
||||||
button3 = ba.buttonwidget(parent=self._root_widget,
|
button3 = ba.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=self.button3_action,
|
||||||
autoselect=True,
|
autoselect=True,
|
||||||
button_type='square',
|
button_type='square',
|
||||||
text_scale=1,
|
text_scale=1,
|
||||||
|
|
@ -201,6 +204,9 @@ class PluginWindow(ba.Window):
|
||||||
ba.containerwidget(edit=self._root_widget, selected_child=button3)
|
ba.containerwidget(edit=self._root_widget, selected_child=button3)
|
||||||
ba.containerwidget(edit=self._root_widget, start_button=button3)
|
ba.containerwidget(edit=self._root_widget, start_button=button3)
|
||||||
|
|
||||||
|
def button3_action(self) -> None:
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
class PluginManager:
|
class PluginManager:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
@ -277,7 +283,7 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
||||||
autoselect=True,
|
autoselect=True,
|
||||||
button_type='backSmall',
|
button_type='backSmall',
|
||||||
on_activate_call=self._back)
|
on_activate_call=self._back)
|
||||||
|
|
||||||
ba.containerwidget(edit=self._root_widget, cancel_button=back_button)
|
ba.containerwidget(edit=self._root_widget, cancel_button=back_button)
|
||||||
|
|
||||||
ba.textwidget(
|
ba.textwidget(
|
||||||
|
|
@ -374,7 +380,7 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
||||||
# border=2, margin=0)
|
# border=2, margin=0)
|
||||||
# self._mod_selected = None
|
# self._mod_selected = None
|
||||||
# self._refresh()
|
# self._refresh()
|
||||||
|
|
||||||
def _back(self) -> None:
|
def _back(self) -> None:
|
||||||
from bastd.ui.settings.allsettings import AllSettingsWindow
|
from bastd.ui.settings.allsettings import AllSettingsWindow
|
||||||
ba.containerwidget(edit=self._root_widget,
|
ba.containerwidget(edit=self._root_widget,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue