Example #1
0
 def __platformChangeCallBack(self, *args):
     if os.path.exists(self.srcPathVar.get()) :
         try:
             self.headConsole.configure(state='normal')
             self.headConsole.delete(0.0, 'end')
             self.headConsole.configure(state='disabled')
             self.bottomConsole.configure(state='normal')
             self.bottomConsole.delete(0.0, 'end')
             self.bottomConsole.configure(state='disabled')
             ProcessMgr.createContext(self.packRootPathVar.get())
         except :
             t, v, tb = sys.exc_info()
             print(t, v)
             traceback.print_tb(tb)
Example #2
0
 def __platformChangeCallBack(self, *args):
     if os.path.exists(self.srcPathVar.get()):
         try:
             self.headConsole.configure(state='normal')
             self.headConsole.delete(0.0, 'end')
             self.headConsole.configure(state='disabled')
             self.bottomConsole.configure(state='normal')
             self.bottomConsole.delete(0.0, 'end')
             self.bottomConsole.configure(state='disabled')
             ProcessMgr.createContext(self.packRootPathVar.get())
         except:
             t, v, tb = sys.exc_info()
             print(t, v)
             traceback.print_tb(tb)
Example #3
0
 def startPack(self):
     self.headConsole.configure(state='normal')
     self.headConsole.delete(0.0, 'end')
     self.headConsole.configure(state='disabled')
     self.bottomConsole.configure(state='normal')
     self.bottomConsole.delete(0.0, 'end')
     self.bottomConsole.configure(state='disabled')
     if not os.path.exists(self.packRootPathVar.get()) :
         Log.printInfoln('打包目录错了,骚年,你确定有这文件夹?? ' + self.packRootPathVar.get())
         return
     if not os.path.exists(self.srcPathVar.get()) :
         Log.printInfoln('资源文件目录错了!' + self.srcPathVar.get())
         return
     RootInfoMgr.updateRoot(self.packRootPathVar.get())
     RootInfoMgr.writeRootInfo(self.packRootPathVar.get(), os.path.normpath(self.srcPathVar.get()), self.platformComboVar.get())
     self.updateRootList()
     ProcessMgr.start(self.srcPathVar.get(), self.getPlatformType(), self.isNew.get() > 0, self.isFull.get() > 0)
Example #4
0
 def startPack(self):
     self.headConsole.configure(state='normal')
     self.headConsole.delete(0.0, 'end')
     self.headConsole.configure(state='disabled')
     self.bottomConsole.configure(state='normal')
     self.bottomConsole.delete(0.0, 'end')
     self.bottomConsole.configure(state='disabled')
     if not os.path.exists(self.packRootPathVar.get()):
         Log.printInfoln('打包目录错了,骚年,你确定有这文件夹?? ' +
                         self.packRootPathVar.get())
         return
     if not os.path.exists(self.srcPathVar.get()):
         Log.printInfoln('资源文件目录错了!' + self.srcPathVar.get())
         return
     RootInfoMgr.updateRoot(self.packRootPathVar.get())
     RootInfoMgr.writeRootInfo(self.packRootPathVar.get(),
                               os.path.normpath(self.srcPathVar.get()),
                               self.platformComboVar.get())
     self.updateRootList()
     ProcessMgr.start(self.srcPathVar.get(), self.getPlatformType(),
                      self.isNew.get() > 0,
                      self.isFull.get() > 0)