コード例 #1
0
 def body(self, master):
     Label(master, justify=LEFT, text="Assimp: " ).grid(row=0, column=0)
     Label(master, justify=LEFT, text=run.getEnvVar("assimp_path")).grid(row=0, column=1)
     Label(master, text="New executable:").grid(row=1)
     self.e1 = Entry(master)
     self.e1.grid(row=1, column=1)
     return self.e1  # initial focus
コード例 #2
0
ファイル: ai_regression_ui.py プロジェクト: 3D4Medical/assimp
 def body(self, master):
     Label(master, justify=LEFT, text="Assimp: " ).grid(row=0, column=0)
     Label(master, justify=LEFT, text=run.getEnvVar("assimp_path")).grid(row=0, column=1)
     Label(master, text="New executable:").grid(row=1)
     self.e1 = Entry(master)
     self.e1.grid(row=1, column=1)
     return self.e1  # initial focus
コード例 #3
0
    def reg_update(self):
        assimp_exe = run.getEnvVar( "assimp_path" )
        if len( assimp_exe ) == 0:
            return 1
        exe = "python"
        command = [ exe, "gen_db.py", assimp_exe ]
        log(INFO, "command = " + str(command))
        stdout = subprocess.call(command)

        log(INFO, stdout)
        return 0
コード例 #4
0
ファイル: ai_regression_ui.py プロジェクト: 3D4Medical/assimp
    def reg_update(self):
        assimp_exe = run.getEnvVar( "assimp_path" )
        if len( assimp_exe ) == 0:
            return 1
        exe = "python"
        command = [ exe, "gen_db.py", assimp_exe ]
        log(INFO, "command = " + str(command))
        stdout = subprocess.call(command)

        log(INFO, stdout)
        return 0
コード例 #5
0
 def body(self, master):
     # info will be read from assimp command line tool
     version = "Asset importer lib version unknown"
     exe = run.getEnvVar( "assimp_path" )
     if len( exe ) != 0:
         command = [exe, "version" ]
         log( INFO, "command = " + str(command))
         stdout = subprocess.check_output(command)
         for line in stdout.splitlines():
             pos = str(line).find( "Version" )
             if -1 != pos:
                 version = line
     Label(master, text=version).pack()
コード例 #6
0
ファイル: ai_regression_ui.py プロジェクト: 3D4Medical/assimp
 def body(self, master):
     # info will be read from assimp command line tool
     version = "Asset importer lib version unknown"
     exe = run.getEnvVar( "assimp_path" )
     if len( exe ) != 0:
         command = [exe, "version" ]
         log( INFO, "command = " + str(command))
         stdout = subprocess.check_output(command)
         for line in stdout.splitlines():
             pos = str(line).find( "Version" )
             if -1 != pos:
                 version = line
     Label(master, text=version).pack()