import tkinter as RETK #from tkinter import messagebox from CustDBFunctions import * from CarsDBFunctions import * from ResDBFunctions import * from BaseDBFunctions import * from CustFunctions import * cstDB = CustDBFunctions() carDB = CarsDBFunctions() resDB = ResDBFunctions() baseDB = BaseDBFunctions() class ResEditDialog(object): root = None def __init__(self, parent): """ msg = <str> the message to be displayed dict_key = <sequence> (dictionary, key) to associate with user input (providing a sequence for dict_key creates an entry for user input) """ self.top = RETK.Toplevel(ResEditDialog.root) self.frm = RETK.Frame(self.top, borderwidth=4, relief='ridge') self.frm.pack(fill='both', expand=True) self.resID = parent.resID self.output = resDB.loadRealRes(self.resID)
import tkinter as TK from CustDBFunctions import * from CustEditDialog import * from ResDBFunctions import * dbCst = CustDBFunctions() dbRes = ResDBFunctions() class CustFunctions(object): pass def popup(self, event): try: self.treeCust.selection_set(self.treeCust.identify('item', event.x, event.y)) self.cMenu.post(event.x_root, event.y_root) finally: print("Did it Show, cust") #Filter/Reload the Results based of the entries def FindCustomer(self): fName = self.entry_FName.get() lName = self.entry_LName.get() #TODO: Find a better why to do the comparisons if fName == '' and lName == '': results = dbCst.loadCustomers() else: if fName != '' and lName != '': results = dbCst.loadCustomersByName(fName, lName) else: