bugfix
This commit is contained in:
parent
ffd595097a
commit
63a4bfdb93
@ -21,6 +21,8 @@
|
|||||||
"""
|
"""
|
||||||
from kivy.uix.tabbedpanel import TabbedPanel
|
from kivy.uix.tabbedpanel import TabbedPanel
|
||||||
from kivy.clock import Clock
|
from kivy.clock import Clock
|
||||||
|
from kivy.factory import Factory
|
||||||
|
|
||||||
from kivyblocks.blocks import Blocks
|
from kivyblocks.blocks import Blocks
|
||||||
|
|
||||||
class TabsPanel(BGColorBehavior, TabbedPanel):
|
class TabsPanel(BGColorBehavior, TabbedPanel):
|
||||||
@ -45,17 +47,8 @@ class TabsPanel(BGColorBehavior, TabbedPanel):
|
|||||||
desc = d['content']
|
desc = d['content']
|
||||||
self.add_tab(text,desc)
|
self.add_tab(text,desc)
|
||||||
|
|
||||||
w = block.widgetBuild((
|
Factory.register('TabsPanel',TabsPanel)
|
||||||
class BLKTabItem(BGColorBehavior, TabbedPanelItem):
|
|
||||||
def __init__(self,parent,color_level=0,text="",content={}):
|
|
||||||
self.parent=parent
|
|
||||||
self.color_level = color_level
|
|
||||||
|
|
||||||
class BLKTabedPanel(BGColorBehavior, TabbedPanel):
|
if __name__ == '__main__':
|
||||||
def __init__(self,color_level=0, tabs=[], **kwargs):
|
from kivy.app import App
|
||||||
self.tabs_desc = tabs
|
pass
|
||||||
self.color_level = color_level
|
|
||||||
TabbedPanel.__init__(**kwargs)
|
|
||||||
BGColorBehavior.__init__(self)
|
|
||||||
|
|
||||||
class
|
|
||||||
|
Loading…
Reference in New Issue
Block a user