def __init__(self, doc, bgcolor=None): docview.FormView.__init__(self, doc, grinsRC.IDD_LINKS) components.ControlsDict.__init__(self) self._close_cmd_list = [] self['LeftList'] = components.ListBox(self, grinsRC.IDC_LIST1) self['RightList'] = components.ListBox(self, grinsRC.IDC_LIST2) self['LinkList'] = components.ListBox(self, grinsRC.IDC_LIST_LINKS) self['LeftPushFocus'] = components.Button(self, grinsRC.IDC_PUSH_FOCUS1) self['RightPushFocus'] = components.Button(self, grinsRC.IDC_PUSH_FOCUS2) self['LeftAnchorEd'] = components.Button(self, grinsRC.IDC_ANCHOR_EDITOR1) self['RightAnchorEd'] = components.Button(self, grinsRC.IDC_ANCHOR_EDITOR2) self['AddExternal'] = components.Button(self, grinsRC.IDC_ADD_EXTERNAL) self['AddLink'] = components.Button(self, grinsRC.IDC_ADD_LINK) self['EditLink'] = components.Button(self, grinsRC.IDC_EDIT_LINK) self['DeleteLink'] = components.Button(self, grinsRC.IDC_DELETE_LINK) self['LeftLabel'] = components.Static(self, grinsRC.IDC_STATIC_LEFT) self['RightLabel'] = components.Static(self, grinsRC.IDC_STATIC_RIGHT) self['LeftMenu'] = components.Button(self, grinsRC.IDC_LEFT_MENU) self['RightMenu'] = components.Button(self, grinsRC.IDC_RIGHT_MENU) # cash lists self._lists_ids = (self['LeftList']._id, self['RightList']._id, self['LinkList']._id)
def __init__(self,doc,bgcolor=None): GenFormView.__init__(self,doc,grinsRC.IDD_LAYOUT) self._lnames=l=('LayoutList','ChannelList','OtherList') self[l[0]]=components.ListBox(self,grinsRC.IDC_LAYOUTS) self[l[1]]=components.ListBox(self,grinsRC.IDC_LAYOUT_CHANNELS) self[l[2]]=components.ListBox(self,grinsRC.IDC_OTHER_CHANNELS) self[NEW_LAYOUT]=components.Button(self,grinsRC.IDCMD_NEW_LAYOUT) self[RENAME]=components.Button(self,grinsRC.IDCMD_RENAME) self[DELETE]=components.Button(self,grinsRC.IDCMD_DELETE) self[NEW_REGION]=components.Button(self,grinsRC.IDCMD_NEW_CHANNEL) self[REMOVE_REGION]=components.Button(self,grinsRC.IDCMD_REMOVE_CHANNEL) self[ATTRIBUTES]=components.Button(self,grinsRC.IDCMD_ATTRIBUTES) self[ADD_REGION]=components.Button(self,grinsRC.IDCMD_ADD_CHANNEL) self._activecmds={}
def __init__(self, doc, bgcolor=None): GenFormView.__init__(self, doc, grinsRC.IDD_USERGROUP) self['Groups'] = components.ListBox(self, grinsRC.IDC_GROUPS) self['New'] = components.Button(self, grinsRC.IDCMD_NEW_GROUP) self['Edit'] = components.Button(self, grinsRC.IDCMD_EDIT_GROUP) self['Delete'] = components.Button(self, grinsRC.IDCMD_DELETE_GROUP) self._init_ugroups = [] self._init_pos = None