当前位置: 首页>>代码示例>>Python>>正文


Python Pireal.load_service方法代码示例

本文整理汇总了Python中src.gui.main_window.Pireal.load_service方法的典型用法代码示例。如果您正苦于以下问题:Python Pireal.load_service方法的具体用法?Python Pireal.load_service怎么用?Python Pireal.load_service使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在src.gui.main_window.Pireal的用法示例。


在下文中一共展示了Pireal.load_service方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self):
        super(StatusBar, self).__init__()

        Pireal.load_service("status", self)

        self.connect(self, SIGNAL("messageChanged(QString)"),
                     self.__message_end)
开发者ID:papablopo07,项目名称:pireal,代码行数:9,代码来源:status_bar.py

示例2: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self, parent=None):
        super(Notification, self).__init__(parent)
        box = QVBoxLayout(self)
        box.setContentsMargins(50, 0, 0, 0)
        self.notificator = QLabel("")
        box.addWidget(self.notificator)

        # Timer
        self.timer = QTimer(self)
        self.timer.timeout.connect(self.clear)

        # Install service
        Pireal.load_service("notification", self)
开发者ID:yoshitomimaehara,项目名称:pireal,代码行数:15,代码来源:notification.py

示例3: new_query

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
 def new_query(self):
     from src.gui.query_editor import query_widget
     widget = query_widget.QueryWidget()
     pireal = Pireal.get_service("pireal")
     # Load the instance
     Pireal.load_service("query-editor", widget)
     # MdiArea
     mdi = Pireal.get_service("mdi")
     widget.setMinimumSize(mdi.width(), mdi.minimumSizeHint().height())
     mdi.addSubWindow(widget)
     # Enable querie's QAction
     pireal.enable_disable_query_actions()
     widget.show()
开发者ID:intermezzo-fr,项目名称:pireal,代码行数:15,代码来源:actions.py

示例4: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self):
        super(LateralWidget, self).__init__()
        self._list_widget = QListWidget()
        self.setWidget(self._list_widget)

        Pireal.load_service("lateral", self)

        self._list_widget.setContextMenuPolicy(Qt.CustomContextMenu)

        self.connect(self._list_widget, SIGNAL("currentRowChanged(int)"),
                     self._change_item)
        self.connect(self._list_widget,
                     SIGNAL("customContextMenuRequested(const QPoint)"),
                     self.__show_context_menu)
开发者ID:intermezzo-fr,项目名称:pireal,代码行数:16,代码来源:lateral_widget.py

示例5: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self, orientation=Qt.Vertical):
        super(Container, self).__init__(orientation)
        self._data_bases = []
        self.__filename = ""
        vbox = QVBoxLayout(self)
        vbox.setContentsMargins(0, 0, 0, 0)
        self.__created = False
        # Stacked
        self.stacked = QStackedWidget()
        vbox.addWidget(self.stacked)

        # Table
        self.table_widget = table_widget.TableWidget()

        Pireal.load_service("container", self)
开发者ID:intermezzo-fr,项目名称:pireal,代码行数:17,代码来源:container.py

示例6: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self, orientation=Qt.Vertical):
        super(Container, self).__init__(orientation)
        self.__last_open_folder = None
        self.__filename = ""
        self.__created = False
        self.__modified = False
        vbox = QVBoxLayout(self)
        vbox.setContentsMargins(0, 0, 0, 0)
        # Stacked
        self.stacked = QStackedWidget()
        vbox.addWidget(self.stacked)

        # Table
        self.table_widget = table_widget.TableWidget()

        Pireal.load_service("container", self)
开发者ID:papablopo07,项目名称:pireal,代码行数:18,代码来源:container.py

示例7: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self):
        QWidget.__init__(self)
        box = QVBoxLayout(self)
        box.setContentsMargins(0, 0, 0, 0)
        box.setSpacing(0)

        self.stacked = QStackedWidget()
        box.addWidget(self.stacked)

        self.created = False
        self.__last_open_folder = None
        self.__recent_dbs = []
        if PSetting.RECENT_DBS:
            self.__recent_dbs = PSetting.RECENT_DBS

        Pireal.load_service("central", self)
开发者ID:centaurialpha,项目名称:pireal,代码行数:18,代码来源:central_widget.py

示例8: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setOrientation(Qt.Vertical)
        # Lista de relaciones de la base de datos
        self._relations_list = RelationListQML()
        self._relations_list.set_title(self.tr("Relaciones"))
        self.addWidget(self._relations_list)
        # Lista de relaciones del resultado de consultas
        self._results_list = RelationListQML()
        self._results_list.set_title(self.tr("Resultados"))
        self.addWidget(self._results_list)

        Pireal.load_service("lateral_widget", self)

        self._relations_list.itemClicked.connect(
            lambda i: self.relationClicked.emit(i))
        #         self._relations_list.row()))
        # self._relations_list.itemSelectionChanged.connect(
        #     lambda: self.relationSelectionChanged.emit(
        #         self._relations_list.row()))
        self._results_list.itemClicked.connect(
            lambda i: self.resultClicked.emit(i))
开发者ID:yoshitomimaehara,项目名称:pireal,代码行数:24,代码来源:lateral_widget.py

示例9: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self):
        super(QueryWidget, self).__init__()
        self.__nrelation = 1
        self.__nquery = 1
        self._cursor_position = "Lin: %s, Col: %s"
        self._cursor_position_widget = QLabel(self._cursor_position % (0, 0))

        box = QVBoxLayout(self)
        box.setContentsMargins(0, 0, 5, 0)
        # Tabs
        self.tab = QTabWidget()
        self.tab.setCornerWidget(self._cursor_position_widget)
        self.tab.setTabsClosable(True)
        self.tab.setMovable(True)
        box.addWidget(self.tab)

        Pireal.load_service("query_widget", self)

        # Connections
        self.connect(self.tab, SIGNAL("tabCloseRequested(int)"),
                     self.removeTab)
        self.connect(self.tab, SIGNAL("tabCloseRequested(int)"),
                     self._check_count)
开发者ID:papablopo07,项目名称:pireal,代码行数:25,代码来源:query_widget.py

示例10: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
    def __init__(self):
        super(StatusBar, self).__init__()

        Pireal.load_service("status", self)

        self.messageChanged['QString'].connect(self.__message_end)
开发者ID:centaurialpha,项目名称:pireal,代码行数:8,代码来源:status_bar.py

示例11: __init__

# 需要导入模块: from src.gui.main_window import Pireal [as 别名]
# 或者: from src.gui.main_window.Pireal import load_service [as 别名]
 def __init__(self):
     super(Actions, self).__init__()
     Pireal.load_service("actions", self)
开发者ID:intermezzo-fr,项目名称:pireal,代码行数:5,代码来源:actions.py


注:本文中的src.gui.main_window.Pireal.load_service方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。