Build Fixing

This commit is contained in:
Vishal 2022-08-01 00:32:52 +05:30 committed by GitHub
parent 62f42f5e49
commit af95af8cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):