コード例 #1
0
    def __init__(self, om_gui=None):
        BaseDialog.__init__(self, om_gui, remove_stretch=True)
        self.om_gui = om_gui

        parent_widg = QtWidgets.QWidget()
        form_layout = QtWidgets.QFormLayout(parent_widg)
        scroll_area = QtWidgets.QScrollArea()
        scroll_area.setWidget(parent_widg)
        scroll_area.setWidgetResizable(True)
        self.insertWidget(scroll_area)

        self.shortcuts = appointment_shortcuts.getShortCuts()
        for shortcut in self.shortcuts:
            widg = apptWidget(shortcut.get("appointments"), self)
            form_layout.addRow(shortcut.get("description"), widg)
        self.apply_but.hide()
コード例 #2
0
 def setShortcuts(self):
     self.shortcuts = appointment_shortcuts.getShortCuts()
     self.showAppts()