Exemplo n.º 1
0
    def run(self):
        """ The Run rFactor 2 button has been pressed """
        self.tkButtonRun.flash()  # Flash it

        mainWindow.iconify()
        _cmd = bundleFolder('ModMaker.bat') + ' ' + self.modmaker_file \
            + ' ModManager.exe'
        executeCmdInBatchFile(_cmd)

        mainWindow.deiconify()
        pass
Exemplo n.º 2
0
 def __init__(self, title):
     self.handle = tk.Tk()
     # self.handle.geometry('500x300')
     self.width_of_window = 500
     self.height_of_window = 300
     self.handle.title(title)
     _icon = bundleFolder('resources/rFactory.ico')
     self.handle.iconbitmap(_icon)
     self.handle.columnconfigure(0, weight=1, pad=50)
     self.handle.columnconfigure(1, weight=1, pad=50)
     self.handle.columnconfigure(2, weight=1)
     self.handle.rowconfigure(0, weight=1, pad=50)
     self.handle.rowconfigure(1, weight=1, pad=50)
     #self.handle.rowconfigure(2, weight=1)
     #self.handle.rowconfigure(3, weight=1)
     #self.handle.rowconfigure(4, weight=1)
     self.handle.grid()
Exemplo n.º 3
0
def faq():
    _faq = readTextFile(bundleFolder('faq.txt'))
    messagebox.askokcancel('rFactory FAQ', _faq)