示例#1
0
    def __init__(self, email):
        self.user = email
        self.contractsTable = tkinter.Tk()
        self.W = Label(self.contractsTable, text="OTP")
        self.L = Label(self.contractsTable, text="Contracts Available:")
        self.W.grid(row=1, columnspan=2)
        self.L.grid(row=2, columnspan=2)

        self.createTableContractsAvailable()
        self.tableContents = Contract.getAvailableContracts(self)

        getBack = Button(self.contractsTable,
                         text="Back to Menu",
                         command=self.getBackClicked)
        getBack.grid(columnspan=2)
示例#2
0
 def observerUpdate(self):
     self.tableContents = Contract.getAvailableContracts(self)