예제 #1
0
파일: pyedit.py 프로젝트: pglen/pgpygtk
def main(strarr):

    print "Running on", os.name,  "GTK", gtk.gtk_version, \
            "PyGtk", gtk.pygtk_version

    signal.signal(signal.SIGTERM, terminate)

    #signal.signal(signal.SIGQUIT, interrupt)
    #print "Signals trapped."

    mainwin = pedwin.EdMainWindow(None, None, strarr)
    pedconfig.conf.pedwin = mainwin

    gtk.main()
예제 #2
0
파일: pyedpro.py 프로젝트: pglen/pyedpro
    def do_activate(self):
        if pedconfig.conf.verbose:
            print(PROGNAME, "running on", "'" + os.name + "'", \
                "GTK", Gtk._version, "PyGtk", \
                   "%d.%d.%d" % (Gtk.get_major_version(), \
                        Gtk.get_minor_version(), \
                            Gtk.get_micro_version()))

        #signal.signal(signal.SIGTERM, terminate)
        mainwin = pedwin.EdMainWindow(None, None, self.strarr)
        self.add_window(mainwin.mywin)
        pedconfig.conf.pedwin = mainwin

        if self.projname:
            mainwin.opensess(self.projname)
예제 #3
0
파일: pyedit.py 프로젝트: pglen/pgpygtk
def main(strarr):

    #print "Running gtk", gtk.gtk_version, "Pygtk", gtk.pygtk_version

    signal.signal(signal.SIGTERM, terminate)
    #signal.signal(signal.SIGHUP, terminate)
    #signal.signal(signal.SIGINT, interrupt)
    #signal.signal(signal.SIGQUIT, interrupt)

    #print "Signals trapped."

    mainwin = pedwin.EdMainWindow(None, None, strarr)
    pedconfig.conf.pedwin = mainwin

    gtk.main()
예제 #4
0
파일: pyedit.py 프로젝트: pglen/pgpygtk
def main(strarr):

    print "PyEdit running on", "'" + os.name + "'", \
        "GTK", gtk.gtk_version, "PyGtk", gtk.pygtk_version

    #print sys.stdin
    #print sys.stdout, sys.stderr

    signal.signal(signal.SIGTERM, terminate)

    #signal.signal(signal.SIGQUIT, interrupt)
    #print "Signals trapped."

    mainwin = pedwin.EdMainWindow(None, None, strarr)
    pedconfig.conf.pedwin = mainwin

    gtk.main()
예제 #5
0
파일: pyedpro.py 프로젝트: pglen/pyedpro
def run_main(projname, strarr):

    if pedconfig.conf.verbose:
        print(PROGNAME, "running on", "'" + os.name + "'", \
            "GTK", Gtk._version, "PyGtk", \
               "%d.%d.%d" % (Gtk.get_major_version(), \
                    Gtk.get_minor_version(), \
                        Gtk.get_micro_version()))

    signal.signal(signal.SIGTERM, terminate)

    mainwin = pedwin.EdMainWindow(None, None, strarr, orgbase)
    pedconfig.conf.pedwin = mainwin

    if projname:
        mainwin.opensess(projname)

    #if strarr:
    #    print("opening files", strarr)
    #    for aa in strarr:
    #        if os.path.isfile(aa):
    #            mainwin.openfile(aa)

    Gtk.main()
예제 #6
0
def main(strarr):

    mw = pedwin.EdMainWindow(None, None, strarr)
    pedconfig.conf.pedwin = mw
    gtk.main()
예제 #7
0
def main(strarr):

    #print strarr
    mw = pedwin.EdMainWindow(None, None, strarr)
    pedconfig.pedconfig.pedwin = mw
    gtk.main()