def __init__(self): Server.__init__(self, self.REQUEST_PORT, self.ANSWER_PORT) import gtk import pygtk import sys self.textview = gtk.TextView() #self.textview.set_editable(False) self.buffer = self.textview.get_buffer() self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.viewport = gtk.Viewport() self.viewport.add(self.textview) self.sw = gtk.ScrolledWindow() self.window.connect("destroy", gtk.main_quit) self.window.set_title("stdout and stderr") self.sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.sw.add(self.viewport) self.window.add(self.sw) self.window.show_all() self.window.maximize()
def __init__(self, port, name): import gtk import pygtk import sys Server.__init__(self, port, None) self.textview = gtk.TextView() self.port = port gtkstatuswindow.port = port #self.textview.set_editable(False) self.buffer = self.textview.get_buffer() self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.buffer.set_text("Status Window") self.viewport = gtk.Viewport() self.viewport.add(self.textview) self.sw = gtk.ScrolledWindow() self.window.connect("destroy", gtk.main_quit) self.window.set_title(name) self.sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.sw.add(self.viewport) self.window.add(self.sw) self.window.show_all()
def __init__(self): Server.__init__(self, self.REQUEST_PORT, self.ANSWER_PORT) self.archive = MasterArchive()
def __init__(self): Server.__init__(self, self.REQUEST_PORT, self.ANSWER_PORT) self.bib = Bibliography() self.lock = threading.RLock() buildthread = CiteBibBuild(self.lock, self.bib) buildthread.start()
def run(self): Server.run(self)
def __init__(self): Server.__init__(self, self.REQUEST_PORT, self.ANSWER_PORT) self.selenium = selenium("localhost", 4444, "*chrome", "http://www.ccc.uga.edu") self.selenium.start()
def run(self): self.selenium.start() self.go_home() Server.run(self)
def __init__(self): Server.__init__(self, self.REQUEST_PORT, self.ANSWER_PORT) #start selenium running import os import time self.selenium = selenium("localhost", 4444, "*chrome", "http://apps.isiknowledge.com/")