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


Python View.__init__方法代碼示例

本文整理匯總了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 = {}
開發者ID:mountainstorm,項目名稱:MtUI,代碼行數:9,代碼來源:Control.py

示例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)
開發者ID:mountainstorm,項目名稱:MtUI,代碼行數:31,代碼來源:Window.py

示例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
開發者ID:FedoraScientific,項目名稱:salome-gui,代碼行數:13,代碼來源:CurveView.py

示例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)
開發者ID:FedoraScientific,項目名稱:salome-gui,代碼行數:13,代碼來源:CurveBrowserView.py

示例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
開發者ID:FedoraScientific,項目名稱:salome-gui,代碼行數:38,代碼來源:XYView.py

示例6: __init__

# 需要導入模塊: from View import View [as 別名]
# 或者: from View.View import __init__ [as 別名]
	def __init__(self):
		View.__init__(self)
開發者ID:jimmyskull,項目名稱:BusOntologyBrowser,代碼行數:4,代碼來源:TextView.py

示例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
開發者ID:FedoraScientific,項目名稱:salome-gui,代碼行數:5,代碼來源:CurveTabsView.py

示例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
開發者ID:DougInBoulder,項目名稱:com-diag-hackamore,代碼行數:5,代碼來源:ViewPrint.py


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