修改侧边栏按钮选中高亮
This commit is contained in:
parent
150c91163f
commit
757c5bc8d9
@ -315,8 +315,13 @@ class BasePanel(ScreenPanel):
|
|||||||
self.content.remove(widget)
|
self.content.remove(widget)
|
||||||
|
|
||||||
def set_control_sensitive(self, value=True, control='move'):
|
def set_control_sensitive(self, value=True, control='move'):
|
||||||
self.control[control].set_sensitive(value)
|
if control == 'back':
|
||||||
|
self.control[control].set_sensitive(value)
|
||||||
|
|
||||||
|
if value:
|
||||||
|
self.control[control].get_style_context().remove_class("button_active")
|
||||||
|
else:
|
||||||
|
self.control[control].get_style_context().add_class("button_active")
|
||||||
def show_shortcut(self, show=True):
|
def show_shortcut(self, show=True):
|
||||||
show = (
|
show = (
|
||||||
show
|
show
|
||||||
|
Loading…
x
Reference in New Issue
Block a user