當前位置: 首頁>>代碼示例>>Python>>正文


Python Mode.__init__方法代碼示例

本文整理匯總了Python中pyqode.core.api.mode.Mode.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Mode.__init__方法的具體用法?Python Mode.__init__怎麽用?Python Mode.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pyqode.core.api.mode.Mode的用法示例。


在下文中一共展示了Mode.__init__方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self):
     QtCore.QObject.__init__(self)
     Mode.__init__(self)
     self._previous_cursor_start = -1
     self._previous_cursor_end = -1
     self._deco = None
     self._cursor = None
     self._timer = DelayJobRunner(delay=200)
開發者ID:OpenCobolIDE,項目名稱:OpenCobolIDE,代碼行數:10,代碼來源:wordclick.py

示例2: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self):
     QtCore.QObject.__init__(self)
     Mode.__init__(self)
     self._auto_reload = False
     self._flg_notify = False
     self._data = (None, None)
     self._timer = QtCore.QTimer()
     self._timer.setInterval(1000)
     self._timer.timeout.connect(self._check_mtime)
     self._mtime = 0
     self._notification_pending = False
     self._processing = False
開發者ID:AlexLee,項目名稱:cadquery-freecad-module,代碼行數:14,代碼來源:filewatcher.py

示例3: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self):
     Mode.__init__(self)
     QtWidgets.QWidget.__init__(self)
     #: Panel order into the zone it is installed to. This value is
     #: automatically set when installing the panel but it can be changed
     #: later (negative values can also be used).
     self.order_in_zone = -1
     self._scrollable = False
     self._background_brush = None
     self._foreground_pen = None
     #: Position in the editor (top, left, right, bottom)
     self.position = -1
開發者ID:AlexLee,項目名稱:cadquery-freecad-module,代碼行數:14,代碼來源:panel.py

示例4: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self._current_completion = ""
     self._trigger_key = QtCore.Qt.Key_Space
     self._trigger_len = 1
     self._trigger_symbols = ['.']
     self._case_sensitive = False
     self._completer = None
     self._filter_mode = self.FILTER_FUZZY
     self._last_cursor_line = -1
     self._last_cursor_column = -1
     self._tooltips = {}
     self._show_tooltips = False
     self._request_id = self._last_request_id = 0
開發者ID:OpenCobolIDE,項目名稱:OpenCobolIDE,代碼行數:17,代碼來源:code_completion.py

示例5: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self, parent, color_scheme=None):
     """
     :param parent: parent document (QTextDocument)
     :param color_scheme: color scheme to use.
     """
     QtGui.QSyntaxHighlighter.__init__(self, parent)
     Mode.__init__(self)
     if not color_scheme:
         color_scheme = ColorScheme('qt')
     self._color_scheme = color_scheme
     self._spaces_ptrn = QtCore.QRegExp(r'[ \t]+')
     #: Fold detector. Set it to a valid FoldDetector to get code folding
     #: to work. Default is None
     self.fold_detector = None
     self.WHITESPACES = QtCore.QRegExp(r'\s+')
開發者ID:AlexLee,項目名稱:cadquery-freecad-module,代碼行數:17,代碼來源:syntax_highlighter.py

示例6: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self, dynamic=False):
     Mode.__init__(self)
     QtWidgets.QWidget.__init__(self)
     #: Specifies whether the panel is dynamic. A dynamic panel is a panel
     #: that will be shown/hidden depending on the context.
     #: Dynamic panel should not appear in any GUI menu (e.g. no display
     #: in the panels menu of the notepad example).
     self.dynamic = dynamic
     #: Panel order into the zone it is installed to. This value is
     #: automatically set when installing the panel but it can be changed
     #: later (negative values can also be used).
     self.order_in_zone = -1
     self._scrollable = False
     self._background_brush = None
     self._foreground_pen = None
     #: Position in the editor (top, left, right, bottom)
     self.position = -1
開發者ID:OpenCobolIDE,項目名稱:OpenCobolIDE,代碼行數:19,代碼來源:panel.py

示例7: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self, worker,
              delay=500,
              show_tooltip=True):
     """
     :param worker: The process function or class to call remotely.
     :param delay: The delay used before running the analysis process when
                   trigger is set to
                   :class:pyqode.core.modes.CheckerTriggers`
     :param show_tooltip: Specify if a tooltip must be displayed when the
                          mouse is over a checker message decoration.
     """
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     # max number of messages to keep good performances
     self.limit = 200
     self._job_runner = DelayJobRunner(delay=delay)
     self._messages = []
     self._worker = worker
     self._mutex = QtCore.QMutex()
     self._show_tooltip = show_tooltip
     self._pending_msg = []
     self._finished = True
開發者ID:dtonal,項目名稱:pyqode.core,代碼行數:24,代碼來源:checker.py

示例8: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self):
     Mode.__init__(self)
     QtCore.QObject.__init__(self)
     self._current_completion = ""
     # use to display a waiting cursor if completion provider takes too much
     # time
     self._job_runner = DelayJobRunner(delay=1000)
     self._tooltips = {}
     self._cursor_line = -1
     self._cancel_next = False
     self._request_cnt = 0
     self._last_completion_prefix = ""
     self._trigger_key = None
     self._trigger_len = None
     self._trigger_symbols = None
     self._show_tooltips = None
     self._case_sensitive = None
     self._data = None
     self._completer = None
     self._col = 0
     self._skip_next_backspace_released = False
     self._init_settings()
開發者ID:AlexLee,項目名稱:cadquery-freecad-module,代碼行數:24,代碼來源:code_completion.py

示例9: __init__

# 需要導入模塊: from pyqode.core.api.mode import Mode [as 別名]
# 或者: from pyqode.core.api.mode.Mode import __init__ [as 別名]
 def __init__(self):
     Mode.__init__(self)
     self._actions_created = False
     self.action_to_lower = None
     self.action_to_upper = None
開發者ID:abdullahtahiriyo,項目名稱:cadquery-freecad-module,代碼行數:7,代碼來源:case_converter.py


注:本文中的pyqode.core.api.mode.Mode.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。