def doUI(self): self.label_searchfor = simpleText(self, 'Search for:', [0, 0, self.bw, self.ls]) self.cb_files = checkBox(self, 'files', [0, self.ls * 1]) self.cb_folders = checkBox(self, 'folders', [0, self.ls * 2]) self.button_go = queryButton("Search", self, '', [0, self.ls * 3], self.go) self.setWindowTitle("Data Vault search engine") # list edits self.s_tags = stringListEdit(self, 'In tags', [self.lew * 1, self.leh * 0]) self.s_filename = stringListEdit(self, 'In name', [self.lew * 2, self.leh * 0]) self.s_units = stringListEdit(self, 'has units', [self.lew * 0, self.leh * 1]) self.s_varname = stringListEdit(self, 'Variable name', [self.lew * 0, self.leh * 2]) self.s_param_name = stringListEdit(self, "Parameter name", [self.lew * 1, self.leh * 1]) self.s_param_units = stringListEdit(self, "Parameter units", [self.lew * 1, self.leh * 2]) self.s_in_comment = stringListEdit(self, "In comment", [self.lew * 2, self.leh * 1]) self.s_comment_user = stringListEdit(self, "Has comment user", [self.lew * 2, self.leh * 2]) self.show()
def doUI(self): self.cbEnabled = checkBox(self,self.cbLabel,[0,0]) self.activeList = simpleList(self,[0,self.ch,self.lw,self.lh],[]) self.inputString = simpleText(self,"",[0,self.ch+self.lh,self.lw-self.bw,self.ls]) self.inputString.setReadOnly(False) self.buttonAdd = queryButton('remove',self,'',[self.lw,self.ch] ,self.rem) self.buttonRem = queryButton('clear' ,self,'',[self.lw,self.lh+self.ch-self.ls],self.clr) self.buttonClr = queryButton('add' ,self,'',[self.lw-self.bw,self.lh+self.ch],self.add)
def doUI(self): self.label_searchfor = simpleText(self,'Search for:',[0,0,self.bw,self.ls]) self.cb_files = checkBox(self,'files' ,[0,self.ls*1]) self.cb_folders = checkBox(self,'folders',[0,self.ls*2]) self.button_go = queryButton("Search",self,'',[0,self.ls*3],self.go) self.setWindowTitle("Data Vault search engine") # list edits self.s_tags = stringListEdit(self,'In tags',[self.lew*1,self.leh*0]) self.s_filename = stringListEdit(self,'In name',[self.lew*2,self.leh*0]) self.s_units = stringListEdit(self,'has units' ,[self.lew*0,self.leh*1]) self.s_varname = stringListEdit(self,'Variable name',[self.lew*0,self.leh*2]) self.s_param_name = stringListEdit(self,"Parameter name" ,[self.lew*1,self.leh*1]) self.s_param_units = stringListEdit(self,"Parameter units" ,[self.lew*1,self.leh*2]) self.s_in_comment = stringListEdit(self,"In comment" ,[self.lew*2,self.leh*1]) self.s_comment_user = stringListEdit(self,"Has comment user",[self.lew*2,self.leh*2]) self.show()
def doUI(self): self.cbEnabled = checkBox(self, self.cbLabel, [0, 0]) self.activeList = simpleList(self, [0, self.ch, self.lw, self.lh], []) self.inputString = simpleText( self, "", [0, self.ch + self.lh, self.lw - self.bw, self.ls]) self.inputString.setReadOnly(False) self.buttonAdd = queryButton('remove', self, '', [self.lw, self.ch], self.rem) self.buttonRem = queryButton('clear', self, '', [self.lw, self.lh + self.ch - self.ls], self.clr) self.buttonClr = queryButton('add', self, '', [self.lw - self.bw, self.lh + self.ch], self.add)