def tree_click(self, event): for item in self.tree_view.selection(): item_temp = self.tree_view.item(item, 'values') item_text = ['', '', item_temp[0], item_temp[1], item_temp[2]] self.win.destroy() global obj_home obj_home = home.Home(item_text)
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ @Author : Jin Yanchao @Email : [email protected] @Time : 2019/5/7 16:59 """ from view import home, drafts, inbox from models import sql if __name__ == '__main__': # sql.create_table() # 创建数据表 obj_home = home.Home()
def main(): h = home.Home() h.display()
def return_home(self): self.win.destroy() global obj_home obj_home = home.Home()