class Category():

    def __init__(self, queue, cbProgress=None):
        self.setTitle(self.TITLE)
        self.queue = queue
        self.settings = []
        for i, setting in enumerate(self.SETTINGS):
            if cbProgress:
                cbProgress(self.TITLE, setting.DIALOGHEADER, int(
                    float(100 / len(self.SETTINGS)) * i))
            self.settings.append(setting())
        # self.scrollbar = scrollbarControl(Tag('onright',9000),Tag('posx',1060),Tag('posy',60),Tag('width',25),Tag('height',530),Tag('visible','Container(9000).HasFocus(%d)'%self.Menucategory.getId()),Tag('showonepage','false'))
        self.category = GroupListControl(Tag('onleft', 9000), Tag('onright', 9000), Tag(
            'itemgap', -1), Tag('visible', 'Container(9000).HasFocus(%d)' % self.Menucategory.getId()), defaultSKin=False)
        # self.scrollbar.setTag(Tag('onleft',self.category.getId()))
        for setting in self.settings:
            setting.addQueue(self.queue)
            self.category.addControl(setting.getControl())
        self.onInit()

    def onInit(self):
        pass

    def setTitle(self, Title):
        self.Title = Title
        self.Menucategory = Content(
            Tag('label', self.Title), Tag('label2', '$INFO[Skin.String(%sloadingvalue)]' % self.Title))

    def getTitle(self):
        return self.Title

    def queueCmd(self, setting):
        self.queue.put(setting)

    def getControls(self):
        return self.category.getControls()

    def getTitleContent(self):
        return self.Menucategory

    def getSettings(self):
        return self.settings

    def getCategory(self):
        return self.category

    def getScrollBar(self):
        return self.scrollbar
Beispiel #2
0
class Category():
    def __init__(self, queue):
        self.setTitle(self.TITLE)
        self.queue = queue
        self.settings = []
        for setting in self.SETTINGS:
            self.settings.append(setting())
        #self.scrollbar = scrollbarControl(Tag('onright',9000),Tag('posx',1060),Tag('posy',60),Tag('width',25),Tag('height',530),Tag('visible','Container(9000).HasFocus(%d)'%self.Menucategory.getId()),Tag('showonepage','false'))
        self.category = GroupListControl(
            Tag('onleft', 9000),
            Tag('onright', 9000),
            Tag('itemgap', -1),
            Tag('visible',
                'Container(9000).HasFocus(%d)' % self.Menucategory.getId()),
            defaultSKin=False)
        #self.scrollbar.setTag(Tag('onleft',self.category.getId()))
        for setting in self.settings:
            setting.addQueue(self.queue)
            self.category.addControl(setting.getControl())
        self.onInit()

    def onInit(self):
        pass

    def setTitle(self, Title):
        self.Title = Title
        self.Menucategory = Content(Tag('label', self.Title))

    def getTitle(self):
        return self.Title

    def queueCmd(self, setting):
        self.queue.put(setting)

    def getControls(self):
        return self.category.getControls()

    def getTitleContent(self):
        return self.Menucategory

    def getSettings(self):
        return self.settings

    def getCategory(self):
        return self.category

    def getScrollBar(self):
        return self.scrollbar
Beispiel #3
0
 def __init__(self, queue):
     self.setTitle(self.TITLE)
     self.queue = queue
     self.settings = []
     for setting in self.SETTINGS:
         self.settings.append(setting())
     #self.scrollbar = scrollbarControl(Tag('onright',9000),Tag('posx',1060),Tag('posy',60),Tag('width',25),Tag('height',530),Tag('visible','Container(9000).HasFocus(%d)'%self.Menucategory.getId()),Tag('showonepage','false'))
     self.category = GroupListControl(
         Tag('onleft', 9000),
         Tag('onright', 9000),
         Tag('itemgap', -1),
         Tag('visible',
             'Container(9000).HasFocus(%d)' % self.Menucategory.getId()),
         defaultSKin=False)
     #self.scrollbar.setTag(Tag('onleft',self.category.getId()))
     for setting in self.settings:
         setting.addQueue(self.queue)
         self.category.addControl(setting.getControl())
     self.onInit()
Beispiel #4
0
class Category():
    def __init__(self,queue) :
        self.setTitle(self.TITLE)
        self.queue = queue
        self.settings = []
        for setting in self.SETTINGS :
            self.settings.append(setting())
        #self.scrollbar = scrollbarControl(Tag('onright',9000),Tag('posx',1060),Tag('posy',60),Tag('width',25),Tag('height',530),Tag('visible','Container(9000).HasFocus(%d)'%self.Menucategory.getId()),Tag('showonepage','false'))
        self.category  = GroupListControl(Tag('onleft',9000),Tag('onright',9000),Tag('itemgap',-1),Tag('visible','Container(9000).HasFocus(%d)'%self.Menucategory.getId()),defaultSKin = False)
        #self.scrollbar.setTag(Tag('onleft',self.category.getId()))
        for setting in self.settings :
            setting.addQueue(self.queue)
            self.category.addControl(setting.getControl())
        self.onInit()
    
    def onInit(self):
        pass
        
    def setTitle(self,Title) :
        self.Title = Title
        self.Menucategory = Content(Tag('label',self.Title))
    
    def getTitle(self) :
        return self.Title
        
    def queueCmd(self,setting):
        self.queue.put(setting)
           
    def getControls(self):
        return self.category.getControls()
        
    def getTitleContent(self):
        return self.Menucategory
    
    def getSettings(self) :
        return self.settings
    
    def getCategory(self):
        return self.category

    def getScrollBar(self):
        return self.scrollbar
Beispiel #5
0
 def __init__(self,queue) :
     self.setTitle(self.TITLE)
     self.queue = queue
     self.settings = []
     for setting in self.SETTINGS :
         self.settings.append(setting())
     #self.scrollbar = scrollbarControl(Tag('onright',9000),Tag('posx',1060),Tag('posy',60),Tag('width',25),Tag('height',530),Tag('visible','Container(9000).HasFocus(%d)'%self.Menucategory.getId()),Tag('showonepage','false'))
     self.category  = GroupListControl(Tag('onleft',9000),Tag('onright',9000),Tag('itemgap',-1),Tag('visible','Container(9000).HasFocus(%d)'%self.Menucategory.getId()),defaultSKin = False)
     #self.scrollbar.setTag(Tag('onleft',self.category.getId()))
     for setting in self.settings :
         setting.addQueue(self.queue)
         self.category.addControl(setting.getControl())
     self.onInit()