优化进入工厂模式的方式为10s内点击5次
This commit is contained in:
parent
adcbaa1795
commit
e6cfa87420
@ -18,8 +18,8 @@ class Panel(ScreenPanel):
|
|||||||
self.labels = {}
|
self.labels = {}
|
||||||
self.click_count = 0
|
self.click_count = 0
|
||||||
self.last_click_time = 0
|
self.last_click_time = 0
|
||||||
self.click_threshold = 0.2
|
self.click_threshold = 2.0
|
||||||
self.target_clicks = 10
|
self.target_clicks = 5
|
||||||
self.grid = Gtk.Grid(column_spacing=10, row_spacing=5)
|
self.grid = Gtk.Grid(column_spacing=10, row_spacing=5)
|
||||||
|
|
||||||
self.sysinfo = screen.printer.system_info
|
self.sysinfo = screen.printer.system_info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user