def destroy(self):
     #print "View.destroy:", self ###
     ns_inner_view = self._ns_inner_view
     GDrawableContainer.destroy(self)
     if ns_inner_view:
         #print "View.destroy: breaking back link from", ns_inner_view ###
         ns_inner_view.pygui_component = None
Beispiel #2
0
 def destroy(self):
     #print "View.destroy:", self ###
     ns_inner_view = self._ns_inner_view
     GDrawableContainer.destroy(self)
     if ns_inner_view:
         #print "View.destroy: breaking back link from", ns_inner_view ###
         ns_inner_view.pygui_component = None
 def __init__(self, **kwds):
     width, height = default_size
     ns_frame = NSMakeRect(0, 0, width, height)
     ns_inner_view = PyGUI_User_NSView.alloc().initWithFrame_(ns_frame)
     if self._ns_scrollable:
         ns_view = NSScrollView.alloc().initWithFrame_(ns_frame)
         ns_view.setDocumentView_(ns_inner_view)
         ns_view.setBackgroundColor_(ns_gray)
     else:
         ns_view = ns_inner_view
     ns_inner_view.pygui_component = self
     GDrawableContainer.__init__(self, _ns_view = ns_view, _ns_inner_view = ns_inner_view)
     self.set(**kwds)
 def __init__(self, _gtk_outer = None, **kwds):
     gtk_layout = gtk.Layout()
     gtk_layout.add_events(gdk.EXPOSURE_MASK)
     gtk_layout.show()
     self._gtk_connect(gtk_layout, 'expose-event',
         self._gtk_expose_event_signal)
     if _gtk_outer:
         _gtk_outer.add(gtk_layout)
     else:
         _gtk_outer = gtk_layout
     GDrawableContainer.__init__(self, _gtk_outer = _gtk_outer, _gtk_inner = gtk_layout,
         _gtk_focus = gtk_layout, _gtk_input = gtk_layout)
     self.set(**kwds)
Beispiel #5
0
 def __init__(self, **kwds):
     width, height = default_size
     ns_frame = NSMakeRect(0, 0, width, height)
     ns_inner_view = PyGUI_User_NSView.alloc().initWithFrame_(ns_frame)
     if self._ns_scrollable:
         ns_view = NSScrollView.alloc().initWithFrame_(ns_frame)
         ns_view.setDocumentView_(ns_inner_view)
         ns_view.setBackgroundColor_(ns_gray)
     else:
         ns_view = ns_inner_view
     ns_inner_view.pygui_component = self
     GDrawableContainer.__init__(self,
                                 _ns_view=ns_view,
                                 _ns_inner_view=ns_inner_view)
     self.set(**kwds)