def show_external_product_window(self, model, path): product_id = model[path][0] if self.product_window == None or not self.product_window.exists: import products self.product_window = products.ProductsGUI(self.main) self.product_window.builder.get_object('paned1').set_position(0) self.product_window.builder.get_object('window').resize(600, 600) self.product_window.select_product(product_id)
def add_product(self, widget): products.ProductsGUI(self.db, manufactured=True)
def products_clicked(self, button): import products products.ProductsGUI(self.db)
def products_activated(self, button): import products products.ProductsGUI(self.main)
def row_activate(self, treeview, path, treeviewcolumn): treeiter = self.product_location_store.get_iter(path) product_id = self.product_location_store.get_value(treeiter, 9) import products products.ProductsGUI(self.db, product_id, product_location_tab = True)
def product_window(self, column): import products products.ProductsGUI(self.db)
def product_clicked (self, menuitem): import products products.ProductsGUI(self.main)
def edit_product_clicked (self, button): import products p = products.ProductsGUI (self.main) p.select_product (self.product_id) self.window.destroy()
def products_activated(self, column): import products products.ProductsGUI(self.main)
def products_window(self, widget): import products products.ProductsGUI(self)