[wxPython] scrollbar window

Hello,

I'm looking over the wxScrolledWindow code in the wxPython demo and can't
find a couple of function, where they come from, both in OnLeftButtonEvent().

self.ViewStart() -- my wxScrolledWindow documentation has GetViewStart().
Is it the same?
apply(...) -- can't find this in docs anywhere. Where does it come from?

In the future I'm planning on adding zooming to my application, in addition
to scrolling. Is it better to use wxScrollbar and manage the coordinates
manually or should I use wxScrolledWindow?

···

-------------------------------------------------
Robert B. Klimek
NASA Glenn Research Center
robert.klimek@grc.nasa.gov
(216) 433-2837
--------------------------------------------------

I'm looking over the wxScrolledWindow code in the wxPython demo and can't
find a couple of function, where they come from, both in

OnLeftButtonEvent().

self.ViewStart() -- my wxScrolledWindow documentation has GetViewStart().
Is it the same?

Yes. ViewStart was the original name. GetViewStart was added a while back
to be more consistent.

apply(...) -- can't find this in docs anywhere. Where does it come from?

This is a builtin Python function.

In the future I'm planning on adding zooming to my application, in

addition

to scrolling. Is it better to use wxScrollbar and manage the coordinates
manually or should I use wxScrolledWindow?

It depends on what you need. The former is more work, but more flexible.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!

"Robert B. Klimek" wrote:

In the future I'm planning on adding zooming to my application, in addition
to scrolling. Is it better to use wxScrollbar and manage the coordinates
manually or should I use wxScrolledWindow?

Robin answered your other questions, but I'll address this one.

I have used wxScrolledWindow to create a zoomable scrolling window for
an app I'm working on. It seems to work pretty well, with the main
problem I'm having is that there can be a lot of extra refreshes in some
cases. I've kludged my way around most of them, so it's OK. The cause is
apparently a long-standing and difficult bug in wxGTK. I don't think
it's problem on Windows.

Anyway it works. I'd be glad to share code with you, and if you decide
that you don't like it, and would rather build your own without
wxScrolledWindow, maybe I'll want to use your code.

-Chris

···

--
Christopher Barker,
Ph.D.
cbarker@jps.net --- --- ---
http://www.jps.net/cbarker -----@@ -----@@ -----@@
                                   ------@@@ ------@@@ ------@@@
Water Resources Engineering ------ @ ------ @ ------ @
Coastal and Fluvial Hydrodynamics ------- --------- --------
------------------------------------------------------------------------
------------------------------------------------------------------------

Thanks Robin and Chris for your input.
Bob

···

At 02:23 PM 7/14/00 -0700, you wrote:

I'm looking over the wxScrolledWindow code in the wxPython demo and can't
find a couple of function, where they come from, both in

OnLeftButtonEvent().

self.ViewStart() -- my wxScrolledWindow documentation has GetViewStart().
Is it the same?

Yes. ViewStart was the original name. GetViewStart was added a while back
to be more consistent.

apply(...) -- can't find this in docs anywhere. Where does it come from?

This is a builtin Python function.

In the future I'm planning on adding zooming to my application, in

addition

to scrolling. Is it better to use wxScrollbar and manage the coordinates
manually or should I use wxScrolledWindow?

It depends on what you need. The former is more work, but more flexible.

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list wxPython-users@wxwindows.org
http://wxwindows.org/mailman/listinfo/wxpython-users

-------------------------------------------------
Robert B. Klimek
NASA Glenn Research Center
robert.klimek@grc.nasa.gov
(216) 433-2837
--------------------------------------------------