Esempio n. 1
0
 def __create_window(self, grampletbar, gramplet, x_pos, y_pos):
     """
     Called when the user has switched to a new GrampletBar page.
     """
     gramplet.page = self.page_num(gramplet)
     self.detached_gramplets.append(gramplet)
     win = DetachedWindow(grampletbar, gramplet, x_pos, y_pos)
     gramplet.detached_window = win
     return win.get_notebook()
Esempio n. 2
0
 def __create_window(self, grampletbar, gramplet, x_pos, y_pos):
     """
     Called when the user has switched to a new GrampletBar page.
     """
     gramplet.page = self.page_num(gramplet)
     self.detached_gramplets.append(gramplet)
     win = DetachedWindow(grampletbar, gramplet, x_pos, y_pos)
     gramplet.detached_window = win
     return win.get_notebook()