本文整理汇总了Python中ErrorMessageClass.raise_方法的典型用法代码示例。如果您正苦于以下问题:Python ErrorMessageClass.raise_方法的具体用法?Python ErrorMessageClass.raise_怎么用?Python ErrorMessageClass.raise_使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ErrorMessageClass
的用法示例。
在下文中一共展示了ErrorMessageClass.raise_方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: MainWindow
# 需要导入模块: import ErrorMessageClass [as 别名]
# 或者: from ErrorMessageClass import raise_ [as 别名]
#.........这里部分代码省略.........
self.setCentralWidget(self.manage_stock_widget)
self.stacked_layout.addWidget(self.manage_stock_widget)
def create_order(self):
self.title = self.create_title()
self.title.setText("Create Order")
self.create_order_instance = createOrderClass()
self.create_order_layout = QVBoxLayout()
self.create_order_layout.addWidget(self.title)
self.create_order_layout.addWidget(self.create_order_instance)
self.create_order_widget = QWidget()
self.create_order_widget.setLayout(self.create_order_layout)
self.setCentralWidget(self.create_order_widget)
self.stacked_layout.addWidget(self.create_order_widget)
self.create_order_instance.display_table.update()
self.create_order_instance.current_order.update()
def search(self):
self.search_instance = SearchClass()
self.search_instance.product_right_click_menu.addAction("Manage Stock" , self.EditStock)
self.search_instance.product_right_click_menu.addAction("Edit Product" , self.EditProduct)
self.search_instance.product_right_click_menu.addAction("Delete Product" , self.DeleteProduct)
self.search_instance.member_right_click_menu.addAction("Edit Member" , self.EditMember)
self.search_instance.member_right_click_menu.addAction("Delete Member" , self.DeleteMember)
self.search_instance.employee_right_click_menu.addAction("Edit Employee" , self.EditEmployee)
self.search_instance.employee_right_click_menu.addAction("Delete Employee" , self.DeleteEmployee)
self.search_instance.move(750,300)
self.search_instance.show()
self.search_instance.raise_()
def EditStock(self):
self.stacked_layout.setCurrentIndex(3)
self.manage_stock_instance.product_id.setText(
str(self.search_instance.product_id))
self.manage_stock_instance.find_product_by_id()
self.search_instance.close()
self.setFixedSize(900, 850)
def EditProduct(self):
self.stacked_layout.setCurrentIndex(1)
self.edit_product_instance.find_product_id_line_edit.setText(
str(self.search_instance.product_id))
self.edit_product_instance.find_product_by_id()
self.search_instance.close()
self.setFixedSize(700, 700)
def DeleteProduct(self):
self.stacked_layout.setCurrentIndex(2)
self.delete_product_instance.find_product_id_line_edit.setText(
str(self.search_instance.product_id))
self.delete_product_instance.find_product_by_id()
self.search_instance.close()
self.setFixedSize(700, 700)
def EditMember(self):
self.stacked_layout.setCurrentIndex(6)
self.edit_member_instance.find_member_id_line_edit.setText(
str(self.search_instance.product_id))