Exemplo n.º 1
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)
Exemplo n.º 2
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)
Exemplo n.º 3
0
 def __packRootPathChangeCallBack(self, *args):
     if os.path.exists(self.packRootPathVar.get()) :
         rootInfo = RootInfoMgr.loadRootInfo(self.packRootPathVar.get())
         if rootInfo != None :
             self.srcPathVar.set(os.path.normpath(rootInfo.srcPath))
             self.platformComboVar.set(rootInfo.platform)
Exemplo n.º 4
0
 def initUIValues(self):
     RootInfoMgr.load()
     self.__rootList = RootInfoMgr.rootPathList
     self.updateRootList()
Exemplo n.º 5
0
 def __packRootPathChangeCallBack(self, *args):
     if os.path.exists(self.packRootPathVar.get()):
         rootInfo = RootInfoMgr.loadRootInfo(self.packRootPathVar.get())
         if rootInfo != None:
             self.srcPathVar.set(os.path.normpath(rootInfo.srcPath))
             self.platformComboVar.set(rootInfo.platform)
Exemplo n.º 6
0
 def initUIValues(self):
     RootInfoMgr.load()
     self.__rootList = RootInfoMgr.rootPathList
     self.updateRootList()