Skip to main content

Thread: wxPython problem - wxGrid doesn't scroll if placed in wxGridBagSizer


hi,
have been trying work wxwidgets on project, , have run annoying problem. have application grid buttons around manipulate , read grid data. problem facing grid not show scrollbar should when place wxgridbagsizer (which using layout window).

here minimal code appears exhibit same problem:
code:
#!/usr/bin/env python import wx import wx.grid class gridframe(wx.frame):     def __init__(self, *args, **kwargs):         """initialize, , let user set frame settings"""         wx.frame.__init__(self, *args, **kwargs)         self.create_controls()          def create_controls(self):         self.setsize((300,300))                  self.g_sizer = wx.gridbagsizer(hgap=15, vgap=15)                  self.grid = wx.grid.grid(self)         self.grid.creategrid(20,40)         self.g_sizer.add(self.grid, pos=(0,0))                  self.setsizer(self.g_sizer)           class wxhelloapp(wx.app): 	"""the wx.app wxhello application"""  	def oninit(self): 		"""override oninit create our frame""" 		frame = gridframe(none, title="assembly file manager") 		frame.show() 		self.settopwindow(frame)  		return true  if __name__ == "__main__": 	app = wxhelloapp() 	app.mainloop()
many thanks!

i don't know answer that, i'm building application using wxgrid extensively too, hope it's not serious. using wx.gridsizer , had trouble gave , used nested box sizers, have far worked me.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk wxPython problem - wxGrid doesn't scroll if placed in wxGridBagSizer


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?