ScrolledPanel not working

well, the little bit you missed was the SetScrollbars thingy
here is the redo method.... rewriten :smiley:

     def redo(self,a):
         serstr = int(self.qtext.GetValue()) #sorry but I hate duplication :wink:

         pan = self.varPanel
         while pan.sizer.Remove(0):
             continue
         import string,os
         for i in range(serstr):
             pan.sizer.Add(wxTextCtrl(pan,1,str(i)*1000,size=(200,200),style=wxTE_MULTILINE|wxHSCROLL),
             1, wxEXPAND)
         ppu = 20 #pixels per virtual unit
         pan.SetScrollbars(ppu, ppu, 200/ppu, 200*serstr/ppu)

···

On Thu, 12 Feb 2004 18:46:44 -0800, Hunter Peress <hunterp@fastmail.fm> wrote:

Maybe its because its in a splitter window? well i need the splitter
window. so whats wrong? (to replicate error, run program and enter a
number like 10, it will create 10 text controls of height 200 , yet there
is no activation of any scrollbar (yes the text ctrl themselves have
scrollbars, but not the widget holding them).

--
Peter Damoc
Hacker Wannabe