Hi,
I try to place a wx.grid on a panel, and make its columns expand to parent, but I get a white space on the right side of cells:
I did:
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
self.mainSizer.Add(self.my_grid, 0, wx.EXPAND|wx.GROW)
self.SetSizer(self.mainSizer)
But I set the size of each column to 1/4 of grid size (there are 4 columns), so why is there whitespace on the right side of the cells?
self.SetColSize(col, (widt/4))
But the whitespace is there when I first start the application as well. I don't resize the window manually.
I did:
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
self.mainSizer.Add(self.my_grid, 0, wx.EXPAND|wx.GROW)
-- Tim Roberts, ti...@probo.com Providenza & Boekelheide, Inc.
Werner wrote:
Hi Steve,
On 7/17/2014 23:19, steve wrote:
I did:wx.GROW is alias of wx.EXPAND, don't know what happens if you use both at the same time, don't they negate each other?
self.mainSizer = wx.BoxSizer(wx.VERTICAL)
self.mainSizer.Add(self.my_grid, 0, wx.EXPAND|wx.GROW)
wx.GROW
8192
wx.EXPAND
8192
Honestly, aren't they teaching you kids Boolean algebra in high school any more? "|" is the logical "or" operator. 1|1 == 1. In fact, for any x, x|x ==
Honestly, aren't they teaching you kids Boolean algebra in high school any more? "|" is the logical "or" operator. 1|1 == 1. In fact, for any x, x|x == x.