Example #1
0
 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
Example #2
0
 def CreateScrollBar(self, control, frame, bam=None):
     view = CreateView(control, IE_GUI_SCROLLBAR, frame,
                       CreateScrollbarARGs(bam))
     return self.AddSubview(view)