Prashant Deshmukh
unread,Nov 7, 2012, 11:58:50 PM11/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxpytho...@googlegroups.com
I am scrolled window showing bottom of the window so scroll bars coming at the bottom. i want them at vertical top position
Below is the code
I use wxPython 2.8.12.1 boa constructor 0.6.1 python 2.6.6 on windows 7
self.scrolledWindow1 = wx.ScrolledWindow(id=wxID_TESTMDICHILDFRAME2SCROLLEDWINDOW1,
name='scrolledWindow1', parent=self, pos=wx.Point(5, 5),
size=wx.Size(800, 464),
style=wx.THICK_FRAME | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | wx.CAPTION | wx.HSCROLL | wx.VSCROLL)
def __init__(self, parent):
self.bsPanelScrolledWin.Add(self.blankpanel1, 0, border=0, flag=0)
self.bsPanelScrolledWin.FitInside(self.scrolledWindow1)
self.scrolledWindow1.SetSizer(self.bsPanelScrolledWin)
self.unit=20
widthPanel,heightPanel=self.panels[1].GetSizeTuple()
self.scrolledWindow1.SetSize((widthPanel+20,heightPanel*3+40))
self.SetSize((widthPanel+75,heightPanel*5))
self.scrolledWindow1.SetScrollbars(self.unit, self.unit, widthPanel/self.unit, heightPanel*7/self.unit)
#self.scrolledWindow1.Center()
self.scrolledWindow1.MakeModal(True)
self.scrolledWindow1.Show(1)
can help me what's the problem with this code