コード例 #1
0
ファイル: details.py プロジェクト: afylab/Data-Vault-Explorer
 def doUI(self):
     self.label_name = simpleText(self, "Name (units)",
                                  [0, 0, self.nl, self.ls])
     self.label_value = simpleText(
         self, "Value", [self.nl, 0, self.width - self.nl, self.ls])
     self.list_parameters = simpleList(
         self, [0, self.ls, self.width, self.ls * 4], [])
コード例 #2
0
    def doUI(self):
        self.setModal(True)

        nolimit = [-float('inf'),float('inf')]

        self.input_name  = textInput( self,'',[0              , 0, self.nl, self.ls],'Parameter name' )
        self.input_units = textInput( self,'',[self.nl        , 0, self.ul, self.ls],'Parameter units')
        self.input_value = floatInput(self,nolimit,8,'',[self.nl+self.ul, 0, self.vl, self.ls],'Parameter value')
        self.button_add  = queryButton("Add",self,'',[0,self.ls],self.add_parameter)

        self.label_name  = simpleText(self,"Parameter name" , [0              , self.ls*3, self.nl, self.ls])
        self.label_units = simpleText(self,"Parameter units", [self.nl        , self.ls*3, self.ul, self.ls])
        self.label_value = simpleText(self,"Parameter value", [self.nl+self.ul, self.ls*3, self.vl, self.ls])

        self.list_parameters = simpleList(self          ,[0      , self.ls*4, self.nl+self.ul+self.vl, self.ls*4], [])
        self.list_parameters.setFont(gui.QFont("Lucida Console",8))

        self.button_remove = queryButton('Remove selected'  , self, '', [0                         , self.ls*8],self.remove_selected)
        self.button_clear  = queryButton('Clear all'        , self, '', [self.nl-167               , self.ls*8],self.remove_all     )
        self.button_write  = queryButton('Write parameters' , self, '', [self.nl+self.ul+self.vl-92, self.ls*8],self.write_parameters )

        self.setFixedSize(self.nl+self.ul+self.vl,self.ls*9)
        self.setWindowTitle("Parameter box")

        self.show()
コード例 #3
0
ファイル: details.py プロジェクト: afylab/Data-Vault-Explorer
 def doUI(self):
     self.label_user = simpleText(self, "User / author",
                                  [0, 0, self.ul, self.ls])
     self.label_comment = simpleText(
         self, "Comment body", [self.ul, 0, self.width - self.ul, self.ls])
     self.list_comments = simpleList(self,
                                     [0, self.ls, self.width, self.ls * 4],
                                     [])
コード例 #4
0
	def doUI(self):
		self.label_status = label(self, [0,0], [self.length,self.line_height],"","Status of connection to Data Vault")
		self.setStatus("LabRAD not connected")

		self.list_folders = simpleList(self,[0,self.line_height*1],[self.length,self.line_height*3],[],"List of folders in current directory")
		self.list_files   = simpleList(self,[0,self.line_height*5],[self.length,self.line_height*4],[],"List of files in current directory")

		self.button_open  = simpleButton(self,[self.length-self.button_length,self.line_height*4],[self.button_length,self.line_height],"select file",self.dvOpen,"Open the currently selected file")
		self.button_home  = simpleButton(self,[0                             ,self.line_height*4],[self.button_length,self.line_height],"home"       ,self.dvHome,"Return to the root directory")
		self.button_up    = simpleButton(self,[self.button_length            ,self.line_height*4],[self.button_length,self.line_height],"up"         ,self.dvUp  ,"Go up one folder from the current directory")
		self.text_details = textBox(self,[0,self.line_height*9],[self.length,self.line_height*4],"",tooltip="Details of currently selected dataset (file)")

		self.list_folders.itemActivated.connect(self.dvSelectFolder)
		self.list_files.itemActivated.connect(self.dvOpen)
		self.list_files.currentItemChanged.connect(self.dvUpdateDetails)


		self.setFixedSize(self.length,self.line_height*13)
		self.move(self.position[0],self.position[1])
コード例 #5
0
ファイル: details.py プロジェクト: afylab/Data-Vault-Explorer
    def doUI(self):
        self.label_name = simpleText(self, "Name",
                                     [0, self.ls * 0, self.ll, self.ls])
        self.label_filenum = simpleText(self, "File number",
                                        [0, self.ls * 1, self.ll, self.ls])
        self.label_location = simpleText(self, "Location",
                                         [0, self.ls * 2, self.ll, self.ls])
        self.label_comments = simpleText(self, "Comment count",
                                         [0, self.ls * 3, self.ll, self.ls])
        self.label_parameters = simpleText(self, "Parameter count",
                                           [0, self.ls * 4, self.ll, self.ls])
        self.label_created = simpleText(self, "Date created",
                                        [0, self.ls * 5, self.ll, self.ls])
        self.value_name = simpleText(self, "",
                                     [self.ll, self.ls * 0, self.vl, self.ls])
        self.value_filenum = simpleText(
            self, "", [self.ll, self.ls * 1, self.vl, self.ls])
        self.value_location = simpleText(
            self, "", [self.ll, self.ls * 2, self.vl, self.ls])
        self.value_comments = simpleText(
            self, "", [self.ll, self.ls * 3, self.vl, self.ls])
        self.value_parameters = simpleText(
            self, "", [self.ll, self.ls * 4, self.vl, self.ls])
        self.value_created = simpleText(
            self, "", [self.ll, self.ls * 5, self.vl, self.ls])

        self.label_independents = simpleText(
            self, "Independents",
            [self.ll + self.vl + self.ls, self.ls * 0, self.ll, self.ls])
        self.label_dependents = simpleText(
            self, "Dependents",
            [self.ll + self.vl + self.ls, self.ls * 4, self.ll, self.ls])
        self.list_independents = simpleList(self, [
            self.ll * 2 + self.vl + self.ls, self.ls * 0, self.vl, self.ls * 3
        ], [])
        self.list_dependents = simpleList(self, [
            self.ll * 2 + self.vl + self.ls, self.ls * 4, self.vl, self.ls * 3
        ], [])

        self.button_export = queryButton("Export to CSV", self, '',
                                         [0, self.height - (self.ls + 25)],
                                         self.export)
コード例 #6
0
ファイル: details.py プロジェクト: afylab/Data-Vault-Explorer
    def doUI(self):
        self.label_name       = simpleText(self,"Name"           ,[0,self.ls*0,self.ll,self.ls])
        self.label_filenum    = simpleText(self,"File number"    ,[0,self.ls*1,self.ll,self.ls])
        self.label_location   = simpleText(self,"Location"       ,[0,self.ls*2,self.ll,self.ls])
        self.label_comments   = simpleText(self,"Comment count"  ,[0,self.ls*3,self.ll,self.ls])
        self.label_parameters = simpleText(self,"Parameter count",[0,self.ls*4,self.ll,self.ls])
        self.label_created    = simpleText(self,"Date created"   ,[0,self.ls*5,self.ll,self.ls])
        self.value_name       = simpleText(self,"",[self.ll,self.ls*0,self.vl,self.ls])
        self.value_filenum    = simpleText(self,"",[self.ll,self.ls*1,self.vl,self.ls])
        self.value_location   = simpleText(self,"",[self.ll,self.ls*2,self.vl,self.ls])
        self.value_comments   = simpleText(self,"",[self.ll,self.ls*3,self.vl,self.ls])
        self.value_parameters = simpleText(self,"",[self.ll,self.ls*4,self.vl,self.ls])
        self.value_created    = simpleText(self,"",[self.ll,self.ls*5,self.vl,self.ls])

        self.label_independents = simpleText(self,"Independents",[self.ll+self.vl+self.ls,self.ls*0,self.ll,self.ls])
        self.label_dependents   = simpleText(self,"Dependents"  ,[self.ll+self.vl+self.ls,self.ls*4,self.ll,self.ls])
        self.list_independents  = simpleList(self,[self.ll*2+self.vl+self.ls,self.ls*0,self.vl,self.ls*3],[])
        self.list_dependents    = simpleList(self,[self.ll*2+self.vl+self.ls,self.ls*4,self.vl,self.ls*3],[])

        self.button_export = queryButton("Export to CSV",self,'',[0,self.height - (self.ls + 25)],self.export)
コード例 #7
0
    def doUI(self):
        self.setModal(True)

        self.input_user    = textInput(self,'',[0      , 0, self.ul, self.ls],'user')
        self.input_comment = textInput(self,'',[self.ul, 0, self.cl, self.ls],'comment body')
        self.button_add    = queryButton("Add",self,'',[0,self.ls],self.add_comment)

        self.label_user    = simpleText(self,"User"   ,[0      , self.ls*3, self.ul        , self.ls  ])
        self.label_comment = simpleText(self,"Comment",[self.ul, self.ls*3, self.cl        , self.ls  ])

        self.list_comments = simpleList(self          ,[0      , self.ls*4, self.ul+self.cl, self.ls*4], [])
        self.list_comments.setFont(gui.QFont("Lucida Console",8))

        self.button_remove = queryButton('Remove selected', self, '', [0                 , self.ls*8],self.remove_selected)
        self.button_clear  = queryButton('Clear all'      , self, '', [self.ul-39        , self.ls*8],self.remove_all     )
        self.button_write  = queryButton('Write comments' , self, '', [self.ul+self.cl-84, self.ls*8],self.write_comments )

        self.setFixedSize(self.ul+self.cl,self.ls*9)
        self.setWindowTitle("Comment box")

        self.show()
コード例 #8
0
ファイル: details.py プロジェクト: afylab/Data-Vault-Explorer
 def doUI(self):
     self.label_user    = simpleText(self,"User / author",[0      , 0, self.ul             , self.ls])
     self.label_comment = simpleText(self,"Comment body" ,[self.ul, 0, self.width - self.ul, self.ls])
     self.list_comments = simpleList(self,[0,self.ls,self.width,self.ls*4],[])
コード例 #9
0
ファイル: details.py プロジェクト: afylab/Data-Vault-Explorer
 def doUI(self):
     self.label_name  = simpleText(self,"Name (units)",[0      , 0, self.nl           , self.ls])
     self.label_value = simpleText(self,"Value"       ,[self.nl, 0, self.width-self.nl, self.ls])
     self.list_parameters = simpleList(self,[0,self.ls,self.width,self.ls*4],[])