本文整理汇总了Python中PyQt5.QtWidgets.QMdiSubWindow类的典型用法代码示例。如果您正苦于以下问题:Python QMdiSubWindow类的具体用法?Python QMdiSubWindow怎么用?Python QMdiSubWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了QMdiSubWindow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
QMdiSubWindow.__init__(self)
self.setFixedSize(100,40)
self.setWindowFlags(Qt.FramelessWindowHint)
label = QLabel("Process Icon")
self.setWidget(label)
示例2: add_window
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)
示例3: __init__
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)
示例4: __on_open
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
示例5: open_python_editor
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()
示例6: view_report_nalog
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()
示例7: view_report_article_day
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()
示例8: view_report_supply
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()
示例9: view_report_all
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()
示例10: view_material_provider
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()
示例11: view_comparing_name
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()
示例12: view_report_profit
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()
示例13: view_test_window
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()
示例14: view_report_pack_accept
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()
示例15: view_report_material_consumption
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()