Exemple #1
0
class MenuAbout(object):

    def __init__(self, menu, main):
        self._main = main

        startPageAction = menu.addAction('Mostrar pagina de Inicio')
        helpAction = menu.addAction('Ayuda de Python[F1]')
        reportBugAction = menu.addAction('Reportar BUGS')
        pluginsDocAction = menu.addAction('Documentacion de Plugins')
        menu.addSeparator()
        aboutNinjaAction = menu.addAction('Acerca de NINJA-IDE')
        aboutQtAction = menu.addAction('Acerca de NINJA-IDE')

        QObject.connect(startPageAction, SIGNAL("triggered()"), self._main.show_start_page)
        QObject.connect(reportBugAction, SIGNAL("triggered()"), self._main.show_report_bugs)
        QObject.connect(aboutQtAction, SIGNAL("triggered()"), self._show_about_qt)
        QObject.connect(helpAction, SIGNAL("triggered()"), self._main._show_python_doc)
        QObject.connect(aboutNinjaAction, SIGNAL("triggered()"), self._show_about_ninja)
        QObject.connect(pluginsDocAction, SIGNAL("triggered()"), self._main.show_plugins_doc)

    def _show_about_qt(self):
        QMessageBox.aboutQt(self._main, 'Acerca de QT')

    def _show_about_ninja(self):
        self.about = AboutNinja(self._main)
        self.about.show()
Exemple #2
0
class MenuAbout(object):
    def __init__(self, menu, main):
        self._main = main

        startPageAction = menu.addAction('Mostrar pagina de Inicio')
        helpAction = menu.addAction('Ayuda de Python[F1]')
        reportBugAction = menu.addAction('Reportar BUGS')
        pluginsDocAction = menu.addAction('Documentacion de Plugins')
        menu.addSeparator()
        aboutNinjaAction = menu.addAction('Acerca de NINJA-IDE')
        aboutQtAction = menu.addAction('Acerca de NINJA-IDE')

        QObject.connect(startPageAction, SIGNAL("triggered()"),
                        self._main.show_start_page)
        QObject.connect(reportBugAction, SIGNAL("triggered()"),
                        self._main.show_report_bugs)
        QObject.connect(aboutQtAction, SIGNAL("triggered()"),
                        self._show_about_qt)
        QObject.connect(helpAction, SIGNAL("triggered()"),
                        self._main._show_python_doc)
        QObject.connect(aboutNinjaAction, SIGNAL("triggered()"),
                        self._show_about_ninja)
        QObject.connect(pluginsDocAction, SIGNAL("triggered()"),
                        self._main.show_plugins_doc)

    def _show_about_qt(self):
        QMessageBox.aboutQt(self._main, 'Acerca de QT')

    def _show_about_ninja(self):
        self.about = AboutNinja(self._main)
        self.about.show()
Exemple #3
0
 def _show_about_ninja(self):
     self.about = AboutNinja(self._main)
     self.about.show()
Exemple #4
0
 def _show_about_ninja(self):
     self.about = AboutNinja(self._main)
     self.about.show()