mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
6e9d698b59
commit
ec116b3506
1 changed files with 147 additions and 147 deletions
|
|
@ -44,6 +44,7 @@ blue_highlight = (0.4, 0.7, 1)
|
||||||
b_color = (0.6, 0.53, 0.63)
|
b_color = (0.6, 0.53, 0.63)
|
||||||
b_textcolor = (0.75, 0.7, 0.8)
|
b_textcolor = (0.75, 0.7, 0.8)
|
||||||
|
|
||||||
|
|
||||||
def Print(*args, color=None, top=None):
|
def Print(*args, color=None, top=None):
|
||||||
out = ""
|
out = ""
|
||||||
for arg in args:
|
for arg in args:
|
||||||
|
|
@ -65,7 +66,6 @@ if not path.exists(external_dir):
|
||||||
Print("You are ready to share replays", color=pink)
|
Print("You are ready to share replays", color=pink)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def override(cls: ClassType) -> Callable[[MethodType], MethodType]:
|
def override(cls: ClassType) -> Callable[[MethodType], MethodType]:
|
||||||
def decorator(newfunc: MethodType) -> MethodType:
|
def decorator(newfunc: MethodType) -> MethodType:
|
||||||
funcname = newfunc.__code__.co_name
|
funcname = newfunc.__code__.co_name
|
||||||
|
|
@ -112,6 +112,7 @@ class CommonUtilities:
|
||||||
if selected_replay is None:
|
if selected_replay is None:
|
||||||
Print("Select a replay", color=red)
|
Print("Select a replay", color=red)
|
||||||
return
|
return
|
||||||
|
|
||||||
def do_it():
|
def do_it():
|
||||||
if tab_id == MyTabId.INTERNAL:
|
if tab_id == MyTabId.INTERNAL:
|
||||||
remove(internal_dir+selected_replay)
|
remove(internal_dir+selected_replay)
|
||||||
|
|
@ -131,6 +132,7 @@ class MyTabId(Enum):
|
||||||
EXTERNAL = "external"
|
EXTERNAL = "external"
|
||||||
SHARE_REPLAYS = "share_replay"
|
SHARE_REPLAYS = "share_replay"
|
||||||
|
|
||||||
|
|
||||||
class Help(PopupWindow):
|
class Help(PopupWindow):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.width = 1200
|
self.width = 1200
|
||||||
|
|
@ -161,7 +163,6 @@ class ShareTabUi(WatchWindow):
|
||||||
|
|
||||||
self.draw_ui()
|
self.draw_ui()
|
||||||
|
|
||||||
|
|
||||||
def on_select_text(self, widget, name):
|
def on_select_text(self, widget, name):
|
||||||
existing_widgets = self.scroll2.get_children()
|
existing_widgets = self.scroll2.get_children()
|
||||||
for i in existing_widgets:
|
for i in existing_widgets:
|
||||||
|
|
@ -285,7 +286,7 @@ class ShareTabUi(WatchWindow):
|
||||||
textcolor=b_textcolor,
|
textcolor=b_textcolor,
|
||||||
on_activate_call=Help)
|
on_activate_call=Help)
|
||||||
|
|
||||||
call_copy=lambda:CommonUtils._copy(self.selected_replay,self.tab_id)
|
def call_copy(): return CommonUtils._copy(self.selected_replay, self.tab_id)
|
||||||
self.share_button = ba.buttonwidget(
|
self.share_button = ba.buttonwidget(
|
||||||
parent=self.root,
|
parent=self.root,
|
||||||
size=(b_width, b_height),
|
size=(b_width, b_height),
|
||||||
|
|
@ -310,7 +311,7 @@ class ShareTabUi(WatchWindow):
|
||||||
on_activate_call=CommonUtils.sync_confirmation)
|
on_activate_call=CommonUtils.sync_confirmation)
|
||||||
|
|
||||||
btnv -= b_height + b_space_extra
|
btnv -= b_height + b_space_extra
|
||||||
call_delete = lambda:CommonUtils.delete_replay(self.selected_replay,self.tab_id,self)
|
def call_delete(): return CommonUtils.delete_replay(self.selected_replay, self.tab_id, self)
|
||||||
delete_replay_button = ba.buttonwidget(
|
delete_replay_button = ba.buttonwidget(
|
||||||
parent=self.root,
|
parent=self.root,
|
||||||
size=(b_width, b_height),
|
size=(b_width, b_height),
|
||||||
|
|
@ -322,7 +323,6 @@ class ShareTabUi(WatchWindow):
|
||||||
textcolor=b_textcolor,
|
textcolor=b_textcolor,
|
||||||
on_activate_call=call_delete)
|
on_activate_call=call_delete)
|
||||||
|
|
||||||
|
|
||||||
self.on_tab_select(MyTabId.INTERNAL)
|
self.on_tab_select(MyTabId.INTERNAL)
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue