ScrolledWindow in a Dialog doesn't show scrollbars when running the application

Hi, I'm using dicompyler (http://code.google.com/p/dicompyler/), an open
source python-based program. I'm trying to create a plugin and I want it to
be scrollable. I create a Dialog then I put a ScrolledWindow in it. I use
wxGlade to create the plugin. If I take a look at the plugin's preview in
wxGlade, I can see scrollbars and I can use them to scroll.

The problem is when I run my plugin with dicompyler: the scrollbars aren't
visible so I can't see all the Dialog window. I'm quite new to wxPython, so
I need help on that. I attached the plugin.py file. plugin.py
<http://wxpython-users.1045709.n5.nabble.com/file/n5718164/plugin.py>

Thank you

- Jean-François

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/ScrolledWindow-in-a-Dialog-doesn-t-show-scrollbars-when-running-the-application-tp5718164.html
Sent from the wxPython-users mailing list archive at Nabble.com.

J-F Gauthier wrote:

Hi, I'm using dicompyler (Google Code Archive - Long-term storage for Google Code Project Hosting.), an open
source python-based program. I'm trying to create a plugin and I want it to
be scrollable. I create a Dialog then I put a ScrolledWindow in it. I use
wxGlade to create the plugin. If I take a look at the plugin's preview in
wxGlade, I can see scrollbars and I can use them to scroll.

The problem is when I run my plugin with dicompyler: the scrollbars aren't
visible so I can't see all the Dialog window. I'm quite new to wxPython, so
I need help on that. I attached the plugin.py file. plugin.py
<http://wxpython-users.1045709.n5.nabble.com/file/n5718164/plugin.py&gt;

That link says the file is not found.

Try creating a simple example and run it standalone for testing instead of as a plugin. Slowly build up to what you need, and then when that is working try it in dicompyler. Using a slow iterative approach like that instead of all at once will probably help you learn and better understand what it is you are doing, and perhaps even help you to not have to rely on wxGlade.

If you get stuck and you have a standalone example that shows the problem then that is easier for us to run and to provide help.

···

--
Robin Dunn
Software Craftsman

Sorry for the bad link, I ust have copy/pasted the link.
For my problem, I found a solution: I used self.ScrolledWindow.SetScrollbars
in my .py file after the initialization of the dialog window. I should get
ride of wxGlade you are right, but I'm new to wxpython and I needed quick
result.

Thank you for your help,

Jean-François

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/ScrolledWindow-in-a-Dialog-doesn-t-show-scrollbars-when-running-the-application-tp5718166p5718188.html
Sent from the wxPython-users mailing list archive at Nabble.com.