def CreateSubview(self, newID, ctype, frame, *args): view = CreateView( newID, ctype, frame, *args) # this will create an entry in the generic 'control' group created = self.AddSubview( view) # this will move the reference into the our window's group RemoveScriptingRef( view ) # destroy the old reference just in case something tries to recycle the id while 'created' is still valid return created
def CreateScrollBar(self, control, frame, bam=None): view = CreateView(control, IE_GUI_SCROLLBAR, frame, CreateScrollbarARGs(bam)) return self.AddSubview(view)