def open_po_clicked(self, button): selection = self.builder.get_object('treeview-selection1') model, path = selection.get_selected_rows() if path == []: return po_id = model[path][0] import purchase_order_window purchase_order_window.PurchaseOrderGUI(self.parent, po_id)
def open_po_row_activated(self, treeview, path, treeview_column): po_id = self.open_po_store[path][0] import purchase_order_window purchase_order_window.PurchaseOrderGUI(self.parent, po_id)
def new_po_clicked(self, button): import purchase_order_window purchase_order_window.PurchaseOrderGUI(self.parent)
def edit_po_clicked (self, widget): import purchase_order_window purchase_order_window.PurchaseOrderGUI(self.purchase_order_id)
def open_po(self, po_id): import purchase_order_window purchase_order_window.PurchaseOrderGUI(po_id) if self.builder.get_object('hide_checkbutton').get_active(): self.window.hide()
def new_purchase_order(self, widget=None): import purchase_order_window purchase_order_window.PurchaseOrderGUI(self)