def initForm(self):
self.dataFile = os.path.basename(sys.argv[0]) + '.data'
self.dataFile = os.path.join(os.path.dirname(sys.argv[0]), self.dataFile)
if not os.path.isfile(self.dataFile):
if sys.frozen:
fatal('"{}" does not exist'.format(self.dataFile))
# If we're not in a frozen environment (built with PyInstaller),
# for testing purposes we still want the uninstaller to run.
self.dataFile = None
self.welcomePage = WelcomePage(self)
self.uninstallPage = UninstallPage(self)
self.stackedPages.addWidget(self.welcomePage)
self.stackedPages.addWidget(self.uninstallPage)
self.setWindowTitle(self.ls('uninstall.title'))
self.setCurrentPage(self.welcomePage)
super().initForm()
uninstaller.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录