RadioBox problems

Hello

Thanks for your interest. I’ve created a small App that replicates my problem. I have commented out the menu parts on one and left them on the other. The status bar shows the result of the radio box. One window has the menu enabled the other doesn’t. I was going to investigate whether the radioBox need to be in a pane!

Thanks

Craig

RadioB_prob.py (676 Bytes)

radioB_menus.py (3.82 KB)

radioB_nomenus.py (3.47 KB)

···

Date: Mon, 10 Dec 2007 10:23:28 -0800
From: robin@alldunn.com
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] RadioBox problems

craig harris wrote:

Hello, has anyone seen a problem where adding a menu bar causes a
radioBox to stop working? The response from the radioBox is to only
return 0 value. If I remove the menus, it works again. This was created
on Boa.

Please provide a small runnable sample that shows the problem.
MakingSampleApps - wxPyWiki


Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


Everything in one place. All new Windows Live!

Hello,

Don’t know if someone already asked for this …

Is there a way to enable/disable drag column size

for only some columns or rows in a grid (wx.grid). Right now,

I see the functions EnableDragColSize (or DisableDragColSize),

but that applies to all columns, when I’d like to make it

False for only one column.

Thanks.

Raphael

Raph wrote:

Don't know if someone already asked for this ...
Is there a way to enable/disable drag column size
for only some columns or rows in a grid (wx.grid). Right now,
I see the functions EnableDragColSize (or DisableDragColSize),
but that applies to all columns, when I'd like to make it
False for only one column.

Catch the event, and veto it for the column you don't want resized.

def col_is_sizable(self, col):
   # example: disallow sizing of cols 1 and 3
   if col in (1,3):
     return False
   return True

def onGridColSize(self, evt):
   if not col_is_sizable(evt.GetRowOrCol()):
     evt.Veto()
   else:
     evt.Skip()

Paul

···

--
http://paulmcnett.com