Ejemplo n.º 1
0
 def view_product_warehouse_2(self):
     self.product_warehouse2 = warehouse_product.Warehouse2()
     self.sub_product_warehouse2 = QMdiSubWindow()
     self.sub_product_warehouse2.setWidget(self.product_warehouse2)
     self.mdi.addSubWindow(self.sub_product_warehouse2)
     self.sub_product_warehouse2.resize(self.product_warehouse2.size())
     self.sub_product_warehouse2.show()
Ejemplo n.º 2
0
    def count(self):
        subwindow_widget = QWidget()
        subwindow_layout = QGridLayout()
        self.sub = QMdiSubWindow()

        radis_label = QLabel("半径")
        radis_line = QLineEdit()
        subwindow_layout.addWidget(radis_label, 0, 0)
        subwindow_layout.addWidget(radis_line, 0, 1)

        angle_label = QLabel("角度")
        angle_line = QLineEdit()
        subwindow_layout.addWidget(angle_label, 1, 0)
        subwindow_layout.addWidget(angle_line, 1, 1)

        radis_label = QLabel("螺距")
        radis_line = QLineEdit()
        subwindow_layout.addWidget(radis_label, 2, 0)
        subwindow_layout.addWidget(radis_line, 2, 1)

        subwindow_widget.setLayout(subwindow_layout)
        self.sub.setWidget(subwindow_widget)

        self.sub.setWindowTitle("Sub Window")
        self.mdi.addSubWindow(self.sub)
        self.sub.show()
Ejemplo n.º 3
0
 def view_warehouse_material(self):
     self.material_warehouse = warehouse_material.Warehouse()
     self.sub_material_warehouse = QMdiSubWindow()
     self.sub_material_warehouse.setWidget(self.material_warehouse)
     self.mdi.addSubWindow(self.sub_material_warehouse)
     self.sub_material_warehouse.resize(self.material_warehouse.size())
     self.sub_material_warehouse.show()
Ejemplo n.º 4
0
 def view_test_fast_warehouse(self):
     self.test_fast_warehouse = test_warehouse.TestFastWarehouse()
     self.sub_test_fast_warehouse = QMdiSubWindow()
     self.sub_test_fast_warehouse.setWidget(self.test_fast_warehouse)
     self.mdi.addSubWindow(self.sub_test_fast_warehouse)
     self.sub_test_fast_warehouse.resize(self.test_fast_warehouse.size())
     self.sub_test_fast_warehouse.show()
Ejemplo n.º 5
0
    def __init__(self):
        QMdiSubWindow.__init__(self)
        self.setFixedSize(100,40)
        self.setWindowFlags(Qt.FramelessWindowHint)

        label = QLabel("Process Icon")
        self.setWidget(label)
Ejemplo n.º 6
0
 def view_settings_access(self):
     self.settings_access = settings_access.Access()
     self.sub_settings_access = QMdiSubWindow()
     self.sub_settings_access.setWidget(self.settings_access)
     self.mdi.addSubWindow(self.sub_settings_access)
     self.sub_settings_access.resize(self.settings_access.size())
     self.sub_settings_access.show()
Ejemplo n.º 7
0
 def view_supply_accessories(self):
     self.supply_accessories = supply_accessories.AccessoriesSupplyList()
     self.sub_supply_accessories = QMdiSubWindow()
     self.sub_supply_accessories.setWidget(self.supply_accessories)
     self.mdi.addSubWindow(self.sub_supply_accessories)
     self.sub_supply_accessories.resize(self.supply_accessories.size())
     self.sub_supply_accessories.show()
Ejemplo n.º 8
0
 def view_report_sibestoimost(self):
     self.report_sibest = report_sibestoimost.ReportSibestoimost()
     self.sub_report_sibest = QMdiSubWindow()
     self.sub_report_sibest.setWidget(self.report_sibest)
     self.mdi.addSubWindow(self.sub_report_sibest)
     self.sub_report_sibest.resize(self.report_sibest.size())
     self.sub_report_sibest.show()
Ejemplo n.º 9
0
 def view_report_supply(self):
     self.report_supply = report_supply.ReportSupply()
     self.sub_report_supply = QMdiSubWindow()
     self.sub_report_supply.setWidget(self.report_supply)
     self.mdi.addSubWindow(self.sub_report_supply)
     self.sub_report_supply.resize(self.report_supply.size())
     self.sub_report_supply.show()
Ejemplo n.º 10
0
 def view_material(self):
     self.material = supply_material.MaterialSupplyList()
     self.sub_material = QMdiSubWindow()
     self.sub_material.setWidget(self.material)
     self.mdi.addSubWindow(self.sub_material)
     self.sub_material.resize(self.material.size())
     self.sub_material.show()
Ejemplo n.º 11
0
 def view_test_window(self):
     self.test_window = test_window.TestWindow()
     self.sub_test_window = QMdiSubWindow()
     self.sub_test_window.setWidget(self.test_window)
     self.mdi.addSubWindow(self.sub_test_window)
     self.sub_test_window.resize(self.test_window.size())
     self.sub_test_window.show()
Ejemplo n.º 12
0
 def view_material_name(self):
     self.material_neme = supply_material.MaterialName()
     self.sub_mater_name = QMdiSubWindow()
     self.sub_mater_name.setWidget(self.material_neme)
     self.mdi.addSubWindow(self.sub_mater_name)
     self.sub_mater_name.resize(self.material_neme.size())
     self.sub_mater_name.show()
Ejemplo n.º 13
0
 def view_material_provider(self):
     self.mat_prov = provider.ProviderMaterial()
     self.sub_provider = QMdiSubWindow()
     self.sub_provider.setWidget(self.mat_prov)
     self.mdi.addSubWindow(self.sub_provider)
     self.sub_provider.resize(self.mat_prov.size())
     self.sub_provider.show()
Ejemplo n.º 14
0
 def view_comparing_name(self):
     self.comparing_name = comparing.ComparingName()
     self.sub_comp_name = QMdiSubWindow()
     self.sub_comp_name.setWidget(self.comparing_name)
     self.mdi.addSubWindow(self.sub_comp_name)
     self.sub_comp_name.resize(self.comparing_name.size())
     self.sub_comp_name.show()
Ejemplo n.º 15
0
 def view_accessories_name(self):
     self.accessories_name = supply_accessories.AccessoriesName()
     self.sub_accsess_name = QMdiSubWindow()
     self.sub_accsess_name.setWidget(self.accessories_name)
     self.mdi.addSubWindow(self.sub_accsess_name)
     self.sub_accsess_name.resize(self.accessories_name.size())
     self.sub_accsess_name.show()
Ejemplo n.º 16
0
 def view_accessories_provider(self):
     self.access_prov = provider.ProviderAccessories()
     self.sub_provider_access = QMdiSubWindow()
     self.sub_provider_access.setWidget(self.access_prov)
     self.mdi.addSubWindow(self.sub_provider_access)
     self.sub_provider_access.resize(self.access_prov.size())
     self.sub_provider_access.show()
Ejemplo n.º 17
0
 def view_report_pack_accept(self):
     self.report_pack_accept = report_accept_pack.ReportAcceptPack()
     self.sub_report_pack_accept = QMdiSubWindow()
     self.sub_report_pack_accept.setWidget(self.report_pack_accept)
     self.mdi.addSubWindow(self.sub_report_pack_accept)
     self.sub_report_pack_accept.resize(self.report_pack_accept.size())
     self.sub_report_pack_accept.show()
Ejemplo n.º 18
0
 def view_shipment_order(self):
     self.shipment_order = shipment_order.ShipmentOrder()
     self.sub_shipment_order = QMdiSubWindow()
     self.sub_shipment_order.setWidget(self.shipment_order)
     self.mdi.addSubWindow(self.sub_shipment_order)
     self.sub_shipment_order.resize(self.shipment_order.size())
     self.sub_shipment_order.show()
Ejemplo n.º 19
0
 def view_report_rest_for_work(self):
     self.report_rest_work = report_rest_work.ReportRestWork()
     self.sub_report_rest_work = QMdiSubWindow()
     self.sub_report_rest_work.setWidget(self.report_rest_work)
     self.mdi.addSubWindow(self.sub_report_rest_work)
     self.sub_report_rest_work.resize(self.report_rest_work.size())
     self.sub_report_rest_work.show()
Ejemplo n.º 20
0
 def view_material_in_pack(self):
     self.material_in_pack = material_in_pack.MaterialInPack()
     self.sub_material_in_pack = QMdiSubWindow()
     self.sub_material_in_pack.setWidget(self.material_in_pack)
     self.mdi.addSubWindow(self.sub_material_in_pack)
     self.sub_material_in_pack.resize(self.material_in_pack.size())
     self.sub_material_in_pack.show()
Ejemplo n.º 21
0
 def view_report_cost_article(self):
     self.report_cost_article = report_cost_article.ReportCostArticle()
     self.sub_report_cost_article = QMdiSubWindow()
     self.sub_report_cost_article.setWidget(self.report_cost_article)
     self.mdi.addSubWindow(self.sub_report_cost_article)
     self.sub_report_cost_article.resize(self.report_cost_article.size())
     self.sub_report_cost_article.show()
Ejemplo n.º 22
0
 def view_report_article_day(self):
     self.report_article_day = report_article_day.ReportArticleDay()
     self.sub_report_article_day = QMdiSubWindow()
     self.sub_report_article_day.setWidget(self.report_article_day)
     self.mdi.addSubWindow(self.sub_report_article_day)
     self.sub_report_article_day.resize(self.report_article_day.size())
     self.sub_report_article_day.show()
Ejemplo n.º 23
0
 def view_report_need_article_order(self):
     self.report_need_article = report_order.NeedArticleOrder()
     self.sub_report_need_article = QMdiSubWindow()
     self.sub_report_need_article.setWidget(self.report_need_article)
     self.mdi.addSubWindow(self.sub_report_need_article)
     self.sub_report_need_article.resize(self.report_need_article.size())
     self.sub_report_need_article.show()
Ejemplo n.º 24
0
 def view_report_nalog(self):
     self.report_nalog = report_nalog.ReportNalog()
     self.sub_report_nalog = QMdiSubWindow()
     self.sub_report_nalog.setWidget(self.report_nalog)
     self.mdi.addSubWindow(self.sub_report_nalog)
     self.sub_report_nalog.resize(self.report_nalog.size())
     self.sub_report_nalog.show()
Ejemplo n.º 25
0
 def view_scan_pack(self):
     self.scan_pack = scan_pack.ScanPack()
     self.sub_scan_pack = QMdiSubWindow()
     self.sub_scan_pack.setWidget(self.scan_pack)
     self.mdi.addSubWindow(self.sub_scan_pack)
     self.sub_scan_pack.resize(self.scan_pack.size())
     self.sub_scan_pack.show()
Ejemplo n.º 26
0
 def view_report_all(self):
     self.report_all = report_all.ReportAll()
     self.sub_view_report_all = QMdiSubWindow()
     self.sub_view_report_all.setWidget(self.report_all)
     self.mdi.addSubWindow(self.sub_view_report_all)
     self.sub_view_report_all.resize(self.report_all.size())
     self.sub_view_report_all.show()
Ejemplo n.º 27
0
 def view_beika(self):
     self.beika = beika.BeikaList()
     self.sub_beika = QMdiSubWindow()
     self.sub_beika.setWidget(self.beika)
     self.mdi.addSubWindow(self.sub_beika)
     self.sub_beika.resize(self.beika.size())
     self.sub_beika.show()
Ejemplo n.º 28
0
 def view_report_reject(self):
     self.report_reject = report_reject.ReportReject()
     self.sub_report_reject = QMdiSubWindow()
     self.sub_report_reject.setWidget(self.report_reject)
     self.mdi.addSubWindow(self.sub_report_reject)
     self.sub_report_reject.resize(self.report_reject.size())
     self.sub_report_reject.show()
Ejemplo n.º 29
0
 def add_window(self, widget: QWidget, tab_name: str = None):
     sub_window = QMdiSubWindow()
     sub_window.setWidget(widget)
     if tab_name is not None:
         sub_window.setWindowTitle(tab_name)
     self.subwindows[widget] = sub_window
     self.ui.mdi_area.addSubWindow(sub_window)
Ejemplo n.º 30
0
 def view_report_profit(self):
     self.report_profit = report_profit.ReportProfit()
     self.sub_report_profit = QMdiSubWindow()
     self.sub_report_profit.setWidget(self.report_profit)
     self.mdi.addSubWindow(self.sub_report_profit)
     self.sub_report_profit.resize(self.report_profit.size())
     self.sub_report_profit.show()
Ejemplo n.º 31
0
 def view_warehouse_accessories(self):
     self.accessories_warehouse = warehouse_accessories.Warehouse()
     self.sub_material_accessories = QMdiSubWindow()
     self.sub_material_accessories.setWidget(self.accessories_warehouse)
     self.mdi.addSubWindow(self.sub_material_accessories)
     self.sub_material_accessories.resize(self.accessories_warehouse.size())
     self.sub_material_accessories.show()
Ejemplo n.º 32
0
 def view_warehouse_rest(self):
     self.rest_warehouse = warehouse_rest.WarehouseRest()
     self.sub_rest_warehouse = QMdiSubWindow()
     self.sub_rest_warehouse.setWidget(self.rest_warehouse)
     self.mdi.addSubWindow(self.sub_rest_warehouse)
     self.sub_rest_warehouse.resize(self.rest_warehouse.size())
     self.sub_rest_warehouse.show()
Ejemplo n.º 33
0
    def __init__(self, card, *args, **kwargs):
        QMdiSubWindow.__init__(self, *args, **kwargs)

        self.card = card

        card_widget = self.card_widget = CardEditView(card)

        self.setWidget(card_widget)
        self.setWindowTitle(card.name)
Ejemplo n.º 34
0
    def __on_open(self):
        window = QMdiSubWindow()
        window.setAttribute(Qt.WA_DeleteOnClose, True)
        window.setWindowTitle('Sub Window ' + str(MyMainWindow.window_index))
        window.resize(300, 200)
        self.mdi_area.addSubWindow(window)
        window.show()

        MyMainWindow.window_index += 1
Ejemplo n.º 35
0
 def open_python_editor(self):
     editor = PyCodeEdit(server_script=server.__file__)
     # we add the image browsing widget
     sub = QMdiSubWindow(None, Qt.WindowShadeButtonHint)
     sub.setWindowTitle("Editor")
     sub.setWidget(editor)
     sub.setWindowIcon(QIcon("gui/resources/icons/python.ico"))
     self.mdiArea.addSubWindow(sub)
     workspace.add(sub)
     sub.show()
Ejemplo n.º 36
0
 def view_report_shipped_customer(self):
     self.report_shipped_customer = report_shipped_to_customer.ReportShippedCustomer()
     self.sub_report_shipped_customer = QMdiSubWindow()
     self.sub_report_shipped_customer.setWidget(self.report_shipped_customer)
     self.mdi.addSubWindow(self.sub_report_shipped_customer)
     self.sub_report_shipped_customer.resize(self.report_shipped_customer.size())
     self.sub_report_shipped_customer.show()
Ejemplo n.º 37
0
 def view_report_performance_company(self):
     self.report_performance_company = report_performance_company.ReportPerformanceCompany()
     self.sub_report_performance_company = QMdiSubWindow()
     self.sub_report_performance_company.setWidget(self.report_performance_company)
     self.mdi.addSubWindow(self.sub_report_performance_company)
     self.sub_report_performance_company.resize(self.report_performance_company.size())
     self.sub_report_performance_company.show()
Ejemplo n.º 38
0
 def view_settings_access(self):
     self.settings_access = settings_access.Access()
     self.sub_settings_access = QMdiSubWindow()
     self.sub_settings_access.setWidget(self.settings_access)
     self.mdi.addSubWindow(self.sub_settings_access)
     self.sub_settings_access.resize(self.settings_access.size())
     self.sub_settings_access.show()
Ejemplo n.º 39
0
 def view_comparing_name(self):
     self.comparing_name = comparing.ComparingName()
     self.sub_comp_name = QMdiSubWindow()
     self.sub_comp_name.setWidget(self.comparing_name)
     self.mdi.addSubWindow(self.sub_comp_name)
     self.sub_comp_name.resize(self.comparing_name.size())
     self.sub_comp_name.show()
Ejemplo n.º 40
0
 def view_report_sibestoimost(self):
     self.report_sibest = report_sibestoimost.ReportSibestoimost()
     self.sub_report_sibest = QMdiSubWindow()
     self.sub_report_sibest.setWidget(self.report_sibest)
     self.mdi.addSubWindow(self.sub_report_sibest)
     self.sub_report_sibest.resize(self.report_sibest.size())
     self.sub_report_sibest.show()
Ejemplo n.º 41
0
 def view_report_supply(self):
     self.report_supply = report_supply.ReportSupply()
     self.sub_report_supply = QMdiSubWindow()
     self.sub_report_supply.setWidget(self.report_supply)
     self.mdi.addSubWindow(self.sub_report_supply)
     self.sub_report_supply.resize(self.report_supply.size())
     self.sub_report_supply.show()
Ejemplo n.º 42
0
 def view_material_in_pack(self):
     self.material_in_pack = material_in_pack.MaterialInPack()
     self.sub_material_in_pack = QMdiSubWindow()
     self.sub_material_in_pack.setWidget(self.material_in_pack)
     self.mdi.addSubWindow(self.sub_material_in_pack)
     self.sub_material_in_pack.resize(self.material_in_pack.size())
     self.sub_material_in_pack.show()
Ejemplo n.º 43
0
 def view_report_pack_accept(self):
     self.report_pack_accept = report_accept_pack.ReportAcceptPack()
     self.sub_report_pack_accept = QMdiSubWindow()
     self.sub_report_pack_accept.setWidget(self.report_pack_accept)
     self.mdi.addSubWindow(self.sub_report_pack_accept)
     self.sub_report_pack_accept.resize(self.report_pack_accept.size())
     self.sub_report_pack_accept.show()
Ejemplo n.º 44
0
 def view_test_window(self):
     self.test_window = test_window.TestWindow()
     self.sub_test_window = QMdiSubWindow()
     self.sub_test_window.setWidget(self.test_window)
     self.mdi.addSubWindow(self.sub_test_window)
     self.sub_test_window.resize(self.test_window.size())
     self.sub_test_window.show()
Ejemplo n.º 45
0
 def view_shipment_order(self):
     self.shipment_order = shipment_order.ShipmentOrder()
     self.sub_shipment_order = QMdiSubWindow()
     self.sub_shipment_order.setWidget(self.shipment_order)
     self.mdi.addSubWindow(self.sub_shipment_order)
     self.sub_shipment_order.resize(self.shipment_order.size())
     self.sub_shipment_order.show()
Ejemplo n.º 46
0
 def view_material(self):
     self.material = supply_material.MaterialSupplyList()
     self.sub_material = QMdiSubWindow()
     self.sub_material.setWidget(self.material)
     self.mdi.addSubWindow(self.sub_material)
     self.sub_material.resize(self.material.size())
     self.sub_material.show()
Ejemplo n.º 47
0
 def view_material_provider(self):
     self.mat_prov = provider.ProviderMaterial()
     self.sub_provider = QMdiSubWindow()
     self.sub_provider.setWidget(self.mat_prov)
     self.mdi.addSubWindow(self.sub_provider)
     self.sub_provider.resize(self.mat_prov.size())
     self.sub_provider.show()
Ejemplo n.º 48
0
 def view_material_name(self):
     self.material_neme = supply_material.MaterialName()
     self.sub_mater_name = QMdiSubWindow()
     self.sub_mater_name.setWidget(self.material_neme)
     self.mdi.addSubWindow(self.sub_mater_name)
     self.sub_mater_name.resize(self.material_neme.size())
     self.sub_mater_name.show()
Ejemplo n.º 49
0
 def view_report_profit(self):
     self.report_profit = report_profit.ReportProfit()
     self.sub_report_profit = QMdiSubWindow()
     self.sub_report_profit.setWidget(self.report_profit)
     self.mdi.addSubWindow(self.sub_report_profit)
     self.sub_report_profit.resize(self.report_profit.size())
     self.sub_report_profit.show()
Ejemplo n.º 50
0
 def view_report_article_day(self):
     self.report_article_day = report_article_day.ReportArticleDay()
     self.sub_report_article_day = QMdiSubWindow()
     self.sub_report_article_day.setWidget(self.report_article_day)
     self.mdi.addSubWindow(self.sub_report_article_day)
     self.sub_report_article_day.resize(self.report_article_day.size())
     self.sub_report_article_day.show()
Ejemplo n.º 51
0
 def view_report_material_consumption(self):
     self.report_material_consumption = report_material_consumption.ReportMaterialConsumption()
     self.sub_report_material_consumption = QMdiSubWindow()
     self.sub_report_material_consumption.setWidget(self.report_material_consumption)
     self.mdi.addSubWindow(self.sub_report_material_consumption)
     self.sub_report_material_consumption.resize(self.report_material_consumption.size())
     self.sub_report_material_consumption.show()
Ejemplo n.º 52
0
 def view_report_nalog(self):
     self.report_nalog = report_nalog.ReportNalog()
     self.sub_report_nalog = QMdiSubWindow()
     self.sub_report_nalog.setWidget(self.report_nalog)
     self.mdi.addSubWindow(self.sub_report_nalog)
     self.sub_report_nalog.resize(self.report_nalog.size())
     self.sub_report_nalog.show()
Ejemplo n.º 53
0
 def view_report_rest_for_work(self):
     self.report_rest_work = report_rest_work.ReportRestWork()
     self.sub_report_rest_work = QMdiSubWindow()
     self.sub_report_rest_work.setWidget(self.report_rest_work)
     self.mdi.addSubWindow(self.sub_report_rest_work)
     self.sub_report_rest_work.resize(self.report_rest_work.size())
     self.sub_report_rest_work.show()
Ejemplo n.º 54
0
 def view_report_all(self):
     self.report_all = report_all.ReportAll()
     self.sub_view_report_all = QMdiSubWindow()
     self.sub_view_report_all.setWidget(self.report_all)
     self.mdi.addSubWindow(self.sub_view_report_all)
     self.sub_view_report_all.resize(self.report_all.size())
     self.sub_view_report_all.show()
Ejemplo n.º 55
0
 def view_report_cost_article(self):
     self.report_cost_article = report_cost_article.ReportCostArticle()
     self.sub_report_cost_article = QMdiSubWindow()
     self.sub_report_cost_article.setWidget(self.report_cost_article)
     self.mdi.addSubWindow(self.sub_report_cost_article)
     self.sub_report_cost_article.resize(self.report_cost_article.size())
     self.sub_report_cost_article.show()
Ejemplo n.º 56
0
 def view_accessories_provider(self):
     self.access_prov = provider.ProviderAccessories()
     self.sub_provider_access = QMdiSubWindow()
     self.sub_provider_access.setWidget(self.access_prov)
     self.mdi.addSubWindow(self.sub_provider_access)
     self.sub_provider_access.resize(self.access_prov.size())
     self.sub_provider_access.show()
Ejemplo n.º 57
0
 def view_report_need_article_order(self):
     self.report_need_article = report_order.NeedArticleOrder()
     self.sub_report_need_article = QMdiSubWindow()
     self.sub_report_need_article.setWidget(self.report_need_article)
     self.mdi.addSubWindow(self.sub_report_need_article)
     self.sub_report_need_article.resize(self.report_need_article.size())
     self.sub_report_need_article.show()
Ejemplo n.º 58
0
 def view_report_warehouse_balance_date(self):
     self.report_warehouse_balance_date = report_warehouse_balance_date.ReportWarehouseBalanceDate()
     self.sub_report_warehouse_balance_date = QMdiSubWindow()
     self.sub_report_warehouse_balance_date.setWidget(self.report_warehouse_balance_date)
     self.mdi.addSubWindow(self.sub_report_warehouse_balance_date)
     self.sub_report_warehouse_balance_date.resize(self.report_warehouse_balance_date.size())
     self.sub_report_warehouse_balance_date.show()
Ejemplo n.º 59
0
 def view_report_reject(self):
     self.report_reject = report_reject.ReportReject()
     self.sub_report_reject = QMdiSubWindow()
     self.sub_report_reject.setWidget(self.report_reject)
     self.mdi.addSubWindow(self.sub_report_reject)
     self.sub_report_reject.resize(self.report_reject.size())
     self.sub_report_reject.show()
Ejemplo n.º 60
0
 def view_accessories_name(self):
     self.accessories_name = supply_accessories.AccessoriesName()
     self.sub_accsess_name = QMdiSubWindow()
     self.sub_accsess_name.setWidget(self.accessories_name)
     self.mdi.addSubWindow(self.sub_accsess_name)
     self.sub_accsess_name.resize(self.accessories_name.size())
     self.sub_accsess_name.show()