Example #1
0
	def __init__(self, extent = default_extent,
			line_scroll_amount = default_line_scroll_amount,
			scrolling = default_scrolling,
			**kwds):
		GScrollableView.__init__(self,
			extent = extent, line_scroll_amount = line_scroll_amount,
			scrolling = scrolling, **kwds)
 def __init__(self, extent = default_extent,
         line_scroll_amount = default_line_scroll_amount,
         scrolling = default_scrolling,
         **kwds):
     GScrollableView.__init__(self,
         extent = extent, line_scroll_amount = line_scroll_amount,
         scrolling = scrolling, **kwds)
Example #3
0
 def __init__(self, extent = default_extent,
         line_scroll_amount = default_line_scroll_amount,
         **kwds):
     gtk_scrolled_window = Gtk.ScrolledWindow()
     gtk_scrolled_window.show()
     GScrollableView.__init__(self, _gtk_outer = gtk_scrolled_window,
         extent = extent, line_scroll_amount = line_scroll_amount, **kwds)
 def __init__(self, **kwds):
     kwds.setdefault('extent', default_extent)
     doc = win_get_dummy_doc()
     win = ui.CreateView(doc)
     #win.CreateWindow(win_none, 0, win_style, (0, 0, 100, 100))
     win.CreateWindow(win_none, ui.AFX_IDW_PANE_FIRST, win_style, (0, 0, 100, 100))
     GScrollableView.__init__(self, _win = win)
     self.set(**kwds)
Example #5
0
 def __init__(self, **kwds):
     kwds.setdefault('extent', default_extent)
     doc = win_get_dummy_doc()
     win = ui.CreateView(doc)
     #win.CreateWindow(win_none, 0, win_style, (0, 0, 100, 100))
     win.CreateWindow(win_none, ui.AFX_IDW_PANE_FIRST, win_style,
                      (0, 0, 100, 100))
     GScrollableView.__init__(self, _win=win)
     self.set(**kwds)
 def __init__(self, **kwds):
     kwds.setdefault('border', True)
     kwds.setdefault('extent', default_extent)
     kwds.setdefault('scrolling', default_scrolling)
     win = ui.CreateWnd()
     win.CreateWindowEx(win_ex_style, win_plain_class, None, win_style, win_default_rect, win_none, 0)
     win.HookMessage(self._win_wm_hscroll, wc.WM_HSCROLL)
     win.HookMessage(self._win_wm_vscroll, wc.WM_VSCROLL)
     GScrollableView.__init__(self, _win = win)
     self.set(**kwds)
Example #7
0
 def __init__(self, **kwds):
     kwds.setdefault('border', True)
     kwds.setdefault('extent', default_extent)
     kwds.setdefault('scrolling', default_scrolling)
     win = ui.CreateWnd()
     win.CreateWindowEx(win_ex_style, win_plain_class, None, win_style,
                        win_default_rect, win_none, 0)
     win.HookMessage(self._win_wm_hscroll, wc.WM_HSCROLL)
     win.HookMessage(self._win_wm_vscroll, wc.WM_VSCROLL)
     GScrollableView.__init__(self, _win=win)
     self.set(**kwds)
 def __init__(
     self, extent=default_extent, line_scroll_amount=default_line_scroll_amount, scrolling=default_scrolling, **kwds
 ):
     gtk_scrolled_window = gtk.ScrolledWindow()
     gtk_scrolled_window.show()
     GScrollableView.__init__(
         self,
         _gtk_outer=gtk_scrolled_window,
         extent=extent,
         line_scroll_amount=line_scroll_amount,
         scrolling=scrolling,
     )
     self.set(**kwds)
 def set_bounds(self, bounds):
     GScrollableView.set_bounds(self, bounds)
     extent = self._win.GetTotalSize()
     self._win_update_scroll_sizes(extent)
Example #10
0
 def invalidate_rect(self, rect):
     GScrollableView.invalidate_rect(
         self, offset_rect_neg(rect, self.scroll_offset))
Example #11
0
 def set_bounds(self, bounds):
     GScrollableView.set_bounds(self, bounds)
     self._win_update_scroll_sizes()
Example #12
0
 def set_bounds(self, bounds):
     GScrollableView.set_bounds(self, bounds)
     extent = self._win.GetTotalSize()
     self._win_update_scroll_sizes(extent)
 def set_bounds(self, bounds):
     GScrollableView.set_bounds(self, bounds)
     self._win_update_scroll_sizes()
 def invalidate_rect(self, rect):
     GScrollableView.invalidate_rect(self, offset_rect_neg(rect, self.scroll_offset))