Compare commits

..

2 Commits

Author SHA1 Message Date
yumoqing
58a143a9ea bugfix 2023-12-17 12:36:59 +08:00
yumoqing
977161fae3 bugfix 2023-12-17 12:34:48 +08:00
2 changed files with 1 additions and 8 deletions

View File

@ -99,7 +99,6 @@ class BlocksApp(App):
def build(self): def build(self):
tl = Label(text='test') tl = Label(text='test')
self.font_size = tl.font_size self.font_size = tl.font_size
print('##################app_font_size=', self.font_size)
config = getConfig() config = getConfig()
self.workers = Workers(maxworkers=config.maxworkers or 80) self.workers = Workers(maxworkers=config.maxworkers or 80)
self.workers.start() self.workers.start()
@ -132,12 +131,6 @@ class BlocksApp(App):
return x return x
return None return None
def realurl(self, url):
if url.startswith('https://') or url.startswith('http://'):
return url
config = getConfig()
return '%s%s' % (config.uihome, url)
def get_user_data_path(self): def get_user_data_path(self):
if platform == 'android': if platform == 'android':
# Environment = autoclass('android.os.Environment') # Environment = autoclass('android.os.Environment')

View File

@ -165,7 +165,7 @@ class TreeNode(BoxLayout):
if cf: if cf:
self.content = HBox(size_hint_y=None, self.content = HBox(size_hint_y=None,
height=self.treeObj.rowHeight) height=self.treeObj.rowHeight)
self.checkbox_w = CheckBox(active=self.data.get(cf, False) self.checkbox_w = CheckBox(active=self.data.get(cf, False))
self.content.add_widget(self.checkbox_w) self.content.add_widget(self.checkbox_w)
self.content.add_widget(x) self.content.add_widget(x)
self.checkbox_w.bind(active=self.on_checkbox_active) self.checkbox_w.bind(active=self.on_checkbox_active)