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()
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)
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()
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()
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()
def main(strarr): mw = pedwin.EdMainWindow(None, None, strarr) pedconfig.conf.pedwin = mw gtk.main()
def main(strarr): #print strarr mw = pedwin.EdMainWindow(None, None, strarr) pedconfig.pedconfig.pedwin = mw gtk.main()