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)
def __init__(self): View.__init__(self) self._state = Control.STATE_NORMAL self._attrs = {} for k, v in ControlState: self._attrs[k] = None self._actions = {}
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)
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)
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
def __init__(self, id): View.__init__(self) # Create builder if not self.builder: self.builder = gtk.Builder() self.builder.set_translation_domain(APP) self.builder.add_from_file(glade_file) self.window = self.builder.get_object(id) # Connect signals import warnings with warnings.catch_warnings(): warnings.simplefilter("ignore") self.builder.connect_signals(self)
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
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
def __init__(self, epd=None): View.__init__(self, epd) self.weather = None
def __init__(self, controller): View.__init__(self, controller) self._XYViews = {} # key: SALOME view ID, value: XYView
def __init__(self): View.__init__(self)
def __init__(self): View.__init__(self)
def __init__(self, epd = None): View.__init__(self, epd)
def __init__(self, controller): View.__init__(self, controller) self._XYViews = {} # key: SALOME view ID, value: XYView
def __init__(self, epd=None): View.__init__(self, epd) self.message = None self.status = constants.STATE_IDLE
def __init__(self, model, logger = None): View.__init__(self, model, logger = logger) self.sn = 0
def __init__(self, tkRoot, app, masterComp, parentNode, logger): View.__init__(self, tkRoot, app, masterComp, parentNode, logger)