本文整理匯總了Python中View.View.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python View.__init__方法的具體用法?Python View.__init__怎麽用?Python View.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類View.View
的用法示例。
在下文中一共展示了View.__init__方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__(self):
View.__init__(self)
self._state = Control.STATE_NORMAL
self._attrs = {}
for k, v in ControlState:
self._attrs[k] = None
self._actions = {}
示例2: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__(self, style=STYLE_DEFAULT, fixed_size=None):
View.__init__(self)
self._window = self
self._first_responder = None
self._title = None
self._style = style
self._resizable = fixed_size is None
self._application = Application.shared_application()
self._min_size = None
self._max_size = None
self._zoomed = False
self._key_window = False
self._main_window = False
if fixed_size is None:
# normal window
self._pyglet = PygletWindow(self,
style=style,
resizable=True)
else:
# fixed size window
self._pyglet = PygletWindow(self,
style=style,
resizable=False,
width=fixed_size.width,
height=fixed_size.height)
x, y = self._pyglet.get_location()
width, height = self._pyglet.get_size()
View.set_frame(self, Rect(x, y, width, height))
self._application._add_window(self)
示例3: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__(self, controller, parentXYView):
View.__init__(self, controller)
self._mplAxes = None
self._mplLines = None
self._isHighlighted = False
self._initialLineWidth = None
self._parentXYView = parentXYView
self._marker = None
self._color = None
self._lineStyle = None
示例4: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__( self, controller) :
""" Constructor """
View.__init__( self, controller)
CurveTreeDockWidget.__init__(self)
self._noUpdate = False
treeWidget = self.getTreeWidget()
treeWidget.itemSelectionChanged.connect(self.onItemSelectionChanged)
treeWidget.itemDoubleClicked.connect(self.onItemDoubleCliked)
treeWidget.setContextMenuPolicy(Qt.CustomContextMenu)
treeWidget.customContextMenuRequested.connect(self.openMenu)
示例5: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__(self, controller):
View.__init__(self, controller)
self._eventHandler = EventHandler()
self._curveViews = {} # key: curve (model) ID, value: CurveView
self._salomeViewID = None
self._mplFigure = None
self._mplAxes = None
self._mplCanvas = None
self._plotWidget = None
self._sgPyQt = self._controller._sgPyQt
self._toolbar = None
self._mplNavigationActions = {}
self._toobarMPL = None
self._grid = None
self._currCrv = None # current curve selected in the view
self._legend = None
self._legendLoc = "right" # "right" or "bottom"
self._fitArea = False
self._zoomPan = False
self._dragOnDrop = False
self._move = False
self._patch = None
self._xdata = None
self._ydata = None
self._defaultLineStyle = None
self._last_point = None
self._lastMarkerID = -1
self._blockLogSignal = False
self._axisXSciNotation = False
self._axisYSciNotation = False
self._prevTitle = None
示例6: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__(self):
View.__init__(self)
示例7: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__(self, controller):
View.__init__(self, controller)
self._XYViews = {} # key: SALOME view ID, value: XYView
示例8: __init__
# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
def __init__(self, model, logger = None):
View.__init__(self, model, logger = logger)
self.sn = 0