Ejemplo n.º 1
0
    def initUI(self):

        #setting window size
        cursize = QDesktopWidget().availableGeometry(self).size()
        titleBarHeight = self.style().pixelMetric(QStyle.PM_TitleBarHeight, QStyleOptionTitleBar(), self)
        self.resize(cursize.width(), cursize.height()-titleBarHeight)

        # setting title/icon, background color
        self.setWindowTitle('Blank Multitab GUI Window')
        #self.setWindowIcon(QIcon('pathway_to_icon_here.png'))
        p = self.palette()
        p.setColor(self.backgroundRole(), QColor(255,255,255)) #white background
        self.setPalette(p)

        #sets app ID to ensure that any additional windows appear under the same tab
        if cursys() == 'Windows':
            myappid = 'APP_ID'  # arbitrary string
            windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)

        #changing font size
        font = QFont()
        font.setPointSize(11)
        font.setFamily("Arial")
        self.setFont(font)

        # prepping to include tabs
        mainWidget = QWidget()
        self.setCentralWidget(mainWidget)
        mainLayout = QVBoxLayout()
        mainWidget.setLayout(mainLayout)
        self.tabWidget = QTabWidget()
        mainLayout.addWidget(self.tabWidget)
        self.myBoxLayout = QVBoxLayout()
        self.tabWidget.setLayout(self.myBoxLayout)
        self.show()

        #setting slash dependent on OS- for file naming and handling
        global slash
        if cursys() == 'Windows':
            slash = '\\'
        else:
            slash = '/'

        #setting up dictionary to store data for each tab
        global alltabdata
        alltabdata = {}

        #tab tracking
        self.totaltabs = 0
        self.tabnumbers = []
Ejemplo n.º 2
0
    os.system(f'iscc /Q[p] "{issfile}"') #executing inno command
    
    #moving output file to same directory level, deleting config file
    deletestuff(issfile)
    
    installerfile += ".exe"
    movestuff("Output"+slash+installerfile,installerfile)
    deletestuff("Output")


    
    
if __name__ == "__main__":
    
    #filesystem dependent
    if cursys() == 'Windows':
        slash = '\\'
    else:
        slash = '/'
    
    #reading main.spec and ares iss config files
    print("Configuring environment/preparing to bundle ARES")
    specfile = "main.spec"
    specfilecontents = open(specfile,"r").read().strip()
    issfile = "ares_installer_setup.iss"
    issfilecontents = open(issfile,"r").read().strip()
    
    os.chdir("..") #backing out of bundling folder
    repodir = os.getcwd() #getting current directory (github directory)
    
    #read/ID necessary variables (general path, build path, ARES version + version for filenames)