Exemplo n.º 1
0
def RunMonitorState():
    x = InputCheck.EnterTime()
    if platform.system() is "Windows":
        FolderLock.MakeFolderWindows()
        while 1:
            FolderLock.CheckIfFolderDeleted(
                "ProcessMonitor.{645ff040-5081-101b-9f08-00aa002f954e}")
            FolderLock.OpenFolder()
            IOprocessList.WriteCsvFile()
            FolderLock.CloseFolder()
            try:
                print "If you want to go back to the menu press CTRL + C"
                time.sleep(x * 60)
            except KeyboardInterrupt:
                MainFrame.RunMainMenu()
    else:
        FolderLock.MakeFolderLinux()
        while 1:
            FolderLock.CheckIfFolderDeleted("ProcessMonitor")
            IOprocessList.WriteCsvFile()
            try:
                print "If you want to go back to the menu press CTRL + C"
                time.sleep(x * 60)
            except KeyboardInterrupt:
                MainFrame.RunMainMenu()
Exemplo n.º 2
0
def main():
    app = wx.App()
    win = MainFrame(None,
                    title="我们自己的线上聊天小程序! (Version %s)" % VERSION,
                    size=wx.Size(850, 800))
    win.Centre()
    win.Show()
    app.MainLoop()
Exemplo n.º 3
0
    def OnInit(self):
        wxInitAllImageHandlers()
        if not self.CheckSingleInstance():
            return False

        self.m_MainFrame = MainFrame()
        #print self.GetAppName()

        self.m_MainFrame.Show()
        self.SetTopWindow(self.m_MainFrame)
        return True
Exemplo n.º 4
0
    def __init__(self, master):
        self.master = master

        # Конфигурация основного окна приложения
        master.title("Создание сертификата")
        master.geometry("{0}x{1}+400+200".format(GUI_WIDTH, GUI_HEIGHT))
        master.grid_columnconfigure(0, weight=1)

        # Инициализация и отображение главного экрана с выбором необходимого сертификата для создания
        self.main_frame = MainFrame(self)
        self.main_frame.show()

        # Инициализация экранов создания сертификатов
        self.self_signed_ssl_frame = SelfSignedSslFrame(self)
        self.signed_ssl_frame = SignedSslFrame(self)
Exemplo n.º 5
0
def main():
    try:
        login()
    except Exception as e:
        if (DataCenter.DEBUG):
            print(e)

    if not os.path.exists("problemset"):
        os.mkdir("problemset")
    if not os.path.exists("data"):
        os.mkdir("data")
    if not os.path.exists("test"):
        os.mkdir("test")
    if not os.path.exists("code"):
        os.mkdir("code")

    banfile = open(BANLIST_FILE, "w+")
    banfile.write('')
    banfile.close()

    problemfile = open(PROBLEMLIST_FILE, "w+")
    problemfile.write('')
    problemfile.close()

    load_banlist()
    load_problemlist()

    DataCenter.MF = MainFrame.MainFrame()
    DataCenter.MF.start_window()
Exemplo n.º 6
0
 def OnInit(self):
     wxInitAllImageHandlers()
     self.main = MainFrame.create(None)
     # needed when running from Boa under Windows 9X
     self.main.Show();self.main.Hide();self.main.Show()
     self.SetTopWindow(self.main)
     return true
Exemplo n.º 7
0
 def OnInit(self):
     wx.InitAllImageHandlers()
     self.main = MainFrame.create(None)
     self.main.Show()
     self.SetTopWindow(self.main)
     self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown)
     self.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
     return True
Exemplo n.º 8
0
 def OnInit(self):
     wx.InitAllImageHandlers()
     self.main = MainFrame.create(None)
     self.main.Show()
     self.SetTopWindow(self.main)
     self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown)
     self.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
     return True
Exemplo n.º 9
0
 def OnInit(self):
     '''
     :return:
     '''
     test_list = ['MainFrame/test_script.py']
     main_frame = MainFrame(self, test_list=test_list)
     login_frame = LoginFrame(self, MainApp=main_frame)
     return True
Exemplo n.º 10
0
 def openProject(self):
     self.frame.checkUsedPins()
     if self.savedFrame != self.frame.usedPins:
         newProjectMensage = "The " + self.filename + " file have been modified. Do you want to save?"
         reply = QtGui.QMessageBox.question(self, 'Message',
                                            newProjectMensage,
                                            QtGui.QMessageBox.Save,
                                            QtGui.QMessageBox.No,
                                            QtGui.QMessageBox.Cancel)
         if reply == QtGui.QMessageBox.Save:
             self.saveProject()
         if reply == QtGui.QMessageBox.Cancel:
             return
     openFileDialog = QtGui.QFileDialog()
     filename = openFileDialog.getOpenFileNameAndFilter(
         self, 'Open Project', '', '*.uiui')[0]
     if filename == '':
         return
     file1 = open(filename, "r")
     try:
         usedPins = pickle.load(file1)
     except:
         QtGui.QMessageBox.question(self, 'Alert', "Invalid file",
                                    QtGui.QMessageBox.Ok)
         return
     if VerifyCorruptedFile.fileCorrupted(filename, usedPins):
         QtGui.QMessageBox.question(self, 'Alert', "Corrupted File",
                                    QtGui.QMessageBox.Ok)
         return
     self.filename = filename
     for i in self.frame.graphList:
         i.removeWidgetAction()
     self.frame.deleteLater()
     self.frame = None
     self.frame = MainFrame.mainFrame(self, self.platform)
     self.setCentralWidget(self.frame)
     self.frame.graphList[0].removeWidgetAction()
     for i in range(len(usedPins[0])):
         self.frame.addWidgetAction()
         pos = self.frame.graphList[-1].pinNumberList.index(usedPins[0][i])
         self.frame.graphList[-1].pinNumber.setCurrentIndex(pos)
         for j in usedPins[0]:
             if j == usedPins[0][i] or j not in self.frame.graphList[
                     -1].pinNumberList:
                 continue
             pos2 = self.frame.graphList[-1].pinNumberList.index(j)
             self.frame.graphList[-1].pinNumber.removeItem(pos2)
             self.frame.graphList[-1].pinNumberList.remove(j)
         self.frame.graphList[-1].pinMode.setCurrentIndex(
             ["INPUT", "OUTPUT"].index(usedPins[1][i]))
         if usedPins[1][i] == "OUTPUT":
             self.frame.graphList[-1].expandGraphButton.show()
             self.frame.graphList[-1].reduceGraphButton.show()
             self.frame.graphList[-1].graph.setGraphStatus(usedPins[1][i])
         self.frame.graphList[-1].graph.setLista(usedPins[2][i])
         self.frame.graphList[-1].graph.repaint()
     self.frame.checkUsedPins()
     self.savedFrame = self.frame.usedPins[:]
Exemplo n.º 11
0
 def CreateFrame(self, type):
     if type == 0:
         return UserFrame.UserFrame(parent=None,
                                    id=type,
                                    UpdateUI=self.UpdateUI)
     elif type == 1:
         return MainFrame.MainFrame(parent=None,
                                    id=type,
                                    UpdateUI=self.UpdateUI)
Exemplo n.º 12
0
 def addNewUser(self, inputlist):
     _db = UserTable.UserTable()
     _db.Connect()
     if not _db.AddNewUser([inputlist[0], inputlist[2], inputlist[1]]):
         self.tryAgain("用户已存在")
         _db.CloseCon()
         return
     _db.CloseCon()
     self.Destroy()
     MainFrame.MainFrame("综合评价", inputlist[0],
                         MagicNum.UserDB.PERMISSION_NOTHING)
Exemplo n.º 13
0
    def OnLogin(self, event):
        global PASSWORD
        PASSWORD = self.password.GetValue()
        # Valid Check
        if self.username.GetValue() == '' or self.password.GetValue() == '':
            Util.MessageBox(self, u'缺少用户名或密码!', u'错误', wx.OK | wx.ICON_ERROR)
            return

        dlg = ProgressDialog.ProgressDialog(self, u'连接服务器...')

        url = 'http://%s:5000/v2.0' % (Setting.getServer())

        RestartDeviceRequests()

        loginthread = LoginThread(dlg, url, self.username.GetValue(),
                                  self.password.GetValue())
        loginthread.start()
        #ret = dlg.ShowModal()
        #dlg.Destroy()
        if dlg.ShowModal() == wx.ID_CANCEL:
            loginthread.stop()
            return
        if loginthread:
            loginthread.stop()
        dlg.Destroy()

        Logger.info("Connect to %s", url)
        Logger.info("UserId: %s, Password: ******", self.username.GetValue())
        ret, reason, detail = loginthread.getReturnValue()
        Logger.info("Result: %s, reason: %s, detail: %s", ret, reason, detail)

        if Setting.getSign().lower() == 'false':
            self.password.SetValue('')

        self.password.SetFocus()

        if not ret:
            Util.MessageBox(self, detail, reason, wx.OK | wx.ICON_ERROR)
            Session.logout()
        else:
            Setting.setLastLogin(FirstUser['firstuser'].username)
            if self.sign.GetValue() == True:
                Setting.setPasswd(self.password.GetValue())
            else:
                Setting.setPasswd('1df#$!cd123~')
            Setting.save()
            area = wx.Display().GetGeometry()
            width = area.GetWidth()
            height = area.GetHeight()
            f = MainFrame.MainFrame(self.GetParent(), (width, height))

            f.ShowFullScreen(True)
            self.GetParent().Hide()
Exemplo n.º 14
0
def RunManualMode():
    firstdate = InputCheck.EnterDate()
    seconddate = InputCheck.EnterDate()
    for proc in firstdate:
        if proc not in seconddate:
            print("the process {0} number {1} is create\n".format(
                proc.name, proc.pid))
    for proc in seconddate:
        if proc not in firstdate:
            print("the process {0} number {1} is stop working\n".format(
                proc.name, proc.pid))
    MainFrame.RunMainFrame()
Exemplo n.º 15
0
 def secondButtonFun(self):
     _inputlist = self.getInputText()
     _db = UserTable.UserTable()
     _db.Connect()
     _res = _db.SearchUser(_inputlist[0])
     if not _res:
         self.tryAgain("该用户不存在")
     elif _res[0][1] != _inputlist[1]:
         self.tryAgain("密码错误")
     else:
         self.Destroy()
         MainFrame.MainFrame("在线客户群价值评价系统", _res[0][0], _res[0][3])
     _db.CloseCon()
Exemplo n.º 16
0
 def OnInit(self):
     self.triggerServer = new('TriggerServer', '/sys/server/trigger')
     self.triggerServer.setPeriod(0.001)
     
     PropertyGroup.addPropertyValueEditorType('', 'b', PropertyItemValueBool)
     PropertyGroup.addPropertyValueEditorType('property string editor', 's', PropertyItemValueString)
     PropertyGroup.addPropertyValueEditorType('property vector3 editor', 'vector3', PropertyItemValueVector3)
     PropertyGroup.addPropertyValueEditorType('property uri editor', 'uri', PropertyItemValueUri)
     
     self.main = MainFrame.create(None)
     self.main.app = self
     self.main.Show()
     self.SetTopWindow(self.main)
     return True
Exemplo n.º 17
0
def main():
    # 第1步,实例化object,建立窗口window
    window = tk.Tk()

    # 设置窗口大小
    winWidth = window.winfo_screenwidth()
    winHeight = window.winfo_screenheight()
    # 获取屏幕分辨率
    screenWidth = window.winfo_screenwidth()
    screenHeight = window.winfo_screenheight()

    x = int((screenWidth - winWidth) / 2)
    y = int((screenHeight - winHeight) / 2)
    # 设置主窗口标题
    window.title("像机构一样思考")
    # 设置窗口初始位置在屏幕居中
    # window.geometry("%sx%s+%s+%s" % (winWidth, winHeight, x, y))
    window.geometry('640x480+200+200')
    # 设置窗口图标
    # window.iconbitmap("./image/android_icon.ico")
    # 设置窗口宽高固定
    window.resizable(True, True)

    global mainframe
    mainframe = MainFrame(window)
    mainframe.pack(fill=BOTH, expand=1)

    create_menu(window)

    message = SplashMessage()
    message.title('新股')
    message.geometry('480x320+200+200')
    message.attributes("-topmost", True)  # 永远处于顶层
    message.mainloop()

    window.mainloop()
Exemplo n.º 18
0
    def autoLogin(self):
        if Setting.getSign().lower() == 'false':
            return False
        if Setting.getAuto().lower() == 'true':
            pass
        else:
            return False

        username = Setting.getLastLogin()
        passwd = Setting.getPasswd()
        if username == '' or passwd == '':
            Util.MessageBox(self, u'缺少用户名或密码!', u'错误', wx.OK | wx.ICON_ERROR)
            return

        dlg = ProgressDialog.ProgressDialog(self, u'连接服务器...')
        dlg.CenterOnScreen()

        url = 'http://%s:5000/v2.0' % (Setting.getServer())

        RestartDeviceRequests()

        loginthread = LoginThread(dlg, url, username, passwd)
        loginthread.start()
        #dlg.SetPosition((100,100))
        #dlg.Move((Resource.screenX-dlg.))
        #dlg.CenterOnScreen()
        #ret = dlg.ShowModal()
        #dlg.Destroy()
        if dlg.ShowModal() == wx.ID_CANCEL:
            loginthread.stop()
            return
        if loginthread:
            loginthread.stop()
        dlg.Destroy()

        Logger.info("Connect to %s", url)
        Logger.info("UserId: %s, Password: ******", username)
        ret, reason, detail = loginthread.getReturnValue()
        Logger.info("Result: %s, reason: %s, detail: %s", ret, reason, detail)

        if not ret:
            Util.MessageBox(self, detail, reason, wx.OK | wx.ICON_ERROR)
            self.ShowFullScreen(True)
            Session.logout()
        else:
            f = MainFrame.MainFrame(self.GetParent(), wx.ScreenDC().GetSize())
            f.ShowFullScreen(True)
            self.GetParent().Hide()
Exemplo n.º 19
0
 def createmainwnd(self,title = None, adornments = None, commandlist = None):
     self._apptitle = version.title
     if adornments:
         self._appadornments=adornments
     if commandlist:
         self._appcommandlist=commandlist
     if len(self._subwindows)==0:
         frame = MainFrame.MDIFrameWnd()
         frame.createOsWnd(self._apptitle)
         frame.init_cmif(None, None, 0, 0, self._apptitle,
                 UNIT_MM, self._appadornments,self._appcommandlist)
         self.setActiveDocFrame(frame)
         for r in self._register_entries:
             ev,cb,arg=r
             frame.register(ev,cb,arg)
     return self._subwindows[0]
Exemplo n.º 20
0
 def newdocument(self, cmifdoc, adornments=None, commandlist=None):
     for frame in self._subwindows:
         if not frame._cmifdoc:
             frame.setdocument(cmifdoc,adornments,commandlist, self._peerdocid)
             self._most_recent_docframe = frame
             return frame
     frame = MainFrame.MDIFrameWnd()
     frame.createOsWnd(self._apptitle)
     frame.init_cmif(None, None, 0, 0,self._apptitle,
             UNIT_MM,self._appadornments,self._appcommandlist)
     frame.setdocument(cmifdoc, adornments, commandlist, self._peerdocid)
     self._most_recent_docframe = frame
     for r in self._register_entries:
         ev,cb,arg=r
         frame.register(ev,cb,arg)
     return frame
Exemplo n.º 21
0
Arquivo: App.py Projeto: Sawiq/pykpc
 def OnInit (self):
     """ App initialiser """
     wx.SetDefaultPyEncoding("utf-8")
     
     self.SetAppName(u'pykpc')
     
     config = wx.Config()
     lang = config.Read('lang', 'LANGUAGE_DEFAULT')
     
     self.locale = wx.Locale(getattr(wx, lang))
     self.localePath = os.path.abspath('./locale') + os.path.sep
     self.locale.AddCatalogLookupPathPrefix(self.localePath)
     self.locale.AddCatalog(self.AppName)
     
     self.frame = MainFrame.MainFrame(None, title=_("Pump"))
     self.frame.Show()
     return True
Exemplo n.º 22
0
    def OnInit(self):
        self.triggerServer = new('TriggerServer', '/sys/server/trigger')
        self.triggerServer.setPeriod(0.001)

        PropertyGroup.addPropertyValueEditorType('', 'b',
                                                 PropertyItemValueBool)
        PropertyGroup.addPropertyValueEditorType('property string editor', 's',
                                                 PropertyItemValueString)
        PropertyGroup.addPropertyValueEditorType('property vector3 editor',
                                                 'vector3',
                                                 PropertyItemValueVector3)
        PropertyGroup.addPropertyValueEditorType('property uri editor', 'uri',
                                                 PropertyItemValueUri)

        self.main = MainFrame.create(None)
        self.main.app = self
        self.main.Show()
        self.SetTopWindow(self.main)
        return True
Exemplo n.º 23
0
    def __init__(self, port=5478, IP1='192.168.10.60', IP2='192.168.10.61'):
        '''
        Constructor
        '''
        self.port = port  # currently we are always using 5478

        self.IP1 = IP1  # the ip addresses of the wto level parsperry pis

        self.IP2 = IP2

        self.MC = MC = MainFrame.MainFrame(
            None,
            title="test")  # this redirects out put into a wx python window.
        MC.SetFramePosition(500)  # sets the left corner in x
        MC.SizeFrame(x=600, y=600)  #sizes the frame

        #Now we start beautify the frame.

        self.CreateMenu()
        self.CreateButton()
Exemplo n.º 24
0
 def newProject(self):
     self.frame.checkUsedPins()
     if self.savedFrame != self.frame.usedPins:
         newProjectMensage = "The " + self.filename + " file have been modified. Do you want to save?"
         reply = QtGui.QMessageBox.question(self, 'Message',
                                            newProjectMensage,
                                            QtGui.QMessageBox.Save,
                                            QtGui.QMessageBox.No,
                                            QtGui.QMessageBox.Cancel)
         if reply == QtGui.QMessageBox.Save:
             self.saveProject()
         if reply == QtGui.QMessageBox.Cancel:
             return
     for i in self.frame.graphList:
         i.removeWidgetAction()
     self.frame.deleteLater()
     self.frame = None
     self.frame = MainFrame.mainFrame(self, self.platform)
     self.setCentralWidget(self.frame)
     self.filename = "untitled.uiui"
Exemplo n.º 25
0
class WxPyAtolApp(wxApp):
    def OnInit(self):
        wxInitAllImageHandlers()
        if not self.CheckSingleInstance():
            return False

        self.m_MainFrame = MainFrame()
        #print self.GetAppName()

        self.m_MainFrame.Show()
        self.SetTopWindow(self.m_MainFrame)
        return True

    def GetFrame(self):
        #print g_SingleInstanceChecker
        return self.m_MainFrame

    def CheckSingleInstance(self):
        #//read INI file to see if single instance check set
        p = PathName()
        strFile = p.GetIniDirectory()
        #//TOFIX
        strFile += '/atol.ini'

        ini = IniFile()
        if ini.Load(strFile):
            nValue = int(ini.GetValue('Default', "SingleInstance", 0))
            if nValue > 0:
                #//check if we have multiple instances of this application
                global g_SingleInstanceChecker
                g_SingleInstanceChecker = wxSingleInstanceChecker("wxPyAtol")
                #print g_SingleInstanceChecker
                if g_SingleInstanceChecker.IsAnotherRunning():
                    #mit _("text") geht es zu diesem Zeitpunkt noch nicht
                    wxLogDebug("Another Atol instance detected, aborting.")
                    #wxLogError(_("Another Atol instance detected, aborting."))
                    return False

        return True
Exemplo n.º 26
0
import Tkinter as tk
import MainFrame

root = tk.Tk()

mf = MainFrame.MainFrame(root)
mf.pack(fill=tk.BOTH, expand=1)

root.update()
root.minsize(root.winfo_width(), root.winfo_height())

root.mainloop()
Exemplo n.º 27
0
# -*- coding: utf-8 -*-
# author: liuxu

import sys
import log
import data
import MainFrame
import argparser

if __name__ == '__main__':
    try:
        if (hasattr(sys, "argv") and len(sys.argv) > 1):
            path = sys.argv[1]
            log.i("douban movie rating, start up ! argv[1]: " + path)
            data.GlobalData.run_path = path
            path_parser = argparser.PathParser(path)
            movie_cache = data.MovieCache(path)
            MainFrame.Main(path_parser.getSearchString(), movie_cache)
        else:
            log.i("douban movie rating, start up ! no args")
            MainFrame.Main("")
    except:
        log.logger.exception("Shit Happens")
Exemplo n.º 28
0
import MainFrame
import wx

if __name__ == '__main__':
    app = wx.App(False)
    frame = MainFrame.MainFrame()
    app.MainLoop()
Exemplo n.º 29
0
	def OnInit(self):
		self.main = MainFrame.create(None, self.libraryPath, self.player)
		self.main.Show()
		self.SetTopWindow(self.main)
		return True
Exemplo n.º 30
0
 def SwitchView(self, msg):
     _inputlist = self.getInputText()
     _mainFrame = MainFrame.MyFrame(msg.data + (_inputlist[0], ),
                                    self.__netconnect)
     _mainFrame.Run()
     self.Hide()
Exemplo n.º 31
0
 def OnInit(self):
     wx.InitAllImageHandlers()
     self.main = MainFrame.create(None)
     self.main.Show()
     self.SetTopWindow(self.main)
     return True
Exemplo n.º 32
0
 def OnInit(self):
     wx.InitAllImageHandlers()
     self.main = MainFrame.create(None)
     self.main.Show()
     self.SetTopWindow(self.main)
     return True
Exemplo n.º 33
0
 def OnInit(self):
     self.main = MainFrame.create(None)
     self.main.Show()
     self.SetTopWindow(self.main)
     return True
Exemplo n.º 34
0
    def initUI(self):
        self.frame = MainFrame.mainFrame(self, self.platform)
        self.frame.checkUsedPins()
        self.savedFrame = self.frame.usedPins[:]
        self.setCentralWidget(self.frame)
        self.statusLabel = QtGui.QLabel('Status')
        self.statusBar().addWidget(self.statusLabel)
        menubar = self.menuBar()

        fileMenu = menubar.addMenu('&File')
        #filemenu itens
        newProjectAction = QtGui.QAction("New", self)
        newProjectAction.setShortcut('Ctrl+N')
        newProjectAction.setStatusTip('New project')
        newProjectAction.triggered.connect(self.newProject)
        fileMenu.addAction(newProjectAction)

        openProjectAction = QtGui.QAction("Open", self)
        openProjectAction.setShortcut('Ctrl+O')
        openProjectAction.setStatusTip('Open project')
        openProjectAction.triggered.connect(self.openProject)
        fileMenu.addAction(openProjectAction)

        saveProjectAction = QtGui.QAction("Save", self)
        saveProjectAction.setShortcut('Ctrl+S')
        saveProjectAction.setStatusTip('Save project')
        saveProjectAction.triggered.connect(self.saveProject)
        fileMenu.addAction(saveProjectAction)

        saveAsProjectAction = QtGui.QAction("Save as", self)
        saveAsProjectAction.setShortcut('Ctrl+Shift+S')
        saveAsProjectAction.setStatusTip('Save project as')
        saveAsProjectAction.triggered.connect(self.saveAsProject)
        fileMenu.addAction(saveAsProjectAction)

        exportInoAction = QtGui.QAction("Export", self)
        exportInoAction.setShortcut('Ctrl+E')
        exportInoAction.setStatusTip('Export the project as the ino file')
        exportInoAction.triggered.connect(self.exportFileIno)
        fileMenu.addAction(exportInoAction)

        exitAction = QtGui.QAction('Exit', self)
        exitAction.setShortcut('Ctrl+Q')
        exitAction.setStatusTip('Exit application')
        exitAction.triggered.connect(self.close)
        fileMenu.addAction(exitAction)
        #file menu itens end

        settingsMenu = menubar.addMenu('&Config')
        #config menu itens

        graphConfigAction = QtGui.QAction('Configure Graphics', self)
        graphConfigAction.setStatusTip(
            'Configure graphics colors, fonts and size')
        self.graphConfigWindows = ConfigGraph.configGraph(self.frame)
        graphConfigAction.triggered.connect(
            lambda: self.graphConfigWindows.exec_())
        settingsMenu.addAction(graphConfigAction)

        ProgramConfigAction = QtGui.QAction('Configure Program', self)
        ProgramConfigAction.setStatusTip(
            'Configure arduino info, serial connection and etc')
        self.programConfigWindows = ConfigProgram.configProgram(self)
        ProgramConfigAction.triggered.connect(
            lambda: self.programConfigWindows.exec_())
        settingsMenu.addAction(ProgramConfigAction)

        #config menu itens end
        helpMenu = menubar.addMenu('&Help')
        #help menu itens

        aboutAction = QtGui.QAction('About Maiguilles', self)
        aboutAction.setStatusTip('Program information')
        about = AboutProgram.aboutProgram()
        aboutAction.triggered.connect(lambda: about.exec_())
        helpMenu.addAction(aboutAction)

        aboutAction = QtGui.QAction('Maiguilles Handbook', self)
        aboutAction.setShortcut('F1')
        aboutAction.setStatusTip('Program manual')
        aboutAction.triggered.connect(lambda: webbrowser.open(
            'https://github.com/esh64/Maiguilles/wiki'))
        helpMenu.addAction(aboutAction)

        reportBugAction = QtGui.QAction('Report Bug', self)
        reportBugAction.setStatusTip('Report Bug')
        reportBugAction.triggered.connect(lambda: webbrowser.open(
            'https://github.com/esh64/Maiguilles/issues'))
        helpMenu.addAction(reportBugAction)

        contributeAction = QtGui.QAction('Contribute', self)
        contributeAction.setStatusTip('Improve, share, donate')
        contributeAction.triggered.connect(lambda: webbrowser.open(
            'https://github.com/esh64/Maiguilles/pulls'))
        helpMenu.addAction(contributeAction)
        #help menu itens end

        self.setGeometry(300, 150, 900, 600)
        self.setWindowTitle('Maiguilles')
        self.setWindowIcon(QtGui.QIcon("Maiguilles.png"))
        self.show()
        if not (os.path.isfile('./configProgramFile')):
            self.statusLabel.setText("Config Program file not found")
            self.programConfigWindows.exec_()