All pastes #940278 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-12 21:24 UTC
rendered paste body
# Author: Vadtec (vadtec@vadtec.net)
import Tkinter
#import btGuiClass # custom

class testModule(object):
    """ A test class for my test module """

    def __init__(self):
        print "Loaded testModule object"

    def test(self):
        print "It's working..."

class buildGui(Tkinter.Frame):
    """ GUI class for building the GUI """

    def __init__(self, master):
        """ Setup the frame """
        print "Loaded buildGui object"
        Tkinter.Frame.__init__(self, master)
        self.create_widgets()
        master.title("BitTorrent Firewall Management Frontend")
        #master.geometry("500x400")

    def test(self):
        print "It's working..."

    def create_widgets(self):
        """ Setup the layout """

        self.displayTextbox = Tkinter.Text(self, width=60, height=30)
        self.displayTextbox.grid(row=0, column=0, columnspan=2)
        self.statusButton = Tkinter.Button(self, text="Initialized...", state="disabled")
        self.statusButton.grid(column=2, row=2, columnspan=2, sticky=Tkinter.S+Tkinter.W)
        self.grid()


mainWin = Tkinter.Tk()

tM = testModule()
tM.test()
bG = buildGui(mainWin)
bG.test()

mainWin.mainloop()