wxGLCanvas on Mac OS X

I just get a blank white canvas with either the wxDemo or programs I wrote myself that work in Linux. I get no error messages and installs all seemed to go without any problems. I configured with --enable-frameworks, etc. Is this just not working yet because wxPython is a "work in progress"? If so, I might be able to volunteer to help get it working.

Barry

Barry Tolnas wrote:

I just get a blank white canvas with either the wxDemo or programs I wrote myself that work in Linux. I get no error messages and installs all seemed to go without any problems. I configured with --enable-frameworks, etc. Is this just not working yet because wxPython is a "work in progress"? If so, I might be able to volunteer to help get it working.

I was always more concerned about other parts of wxPython on the Mac that I never took the time to figure out the OpenGL. (I may not even have a PyOpenGL package built there...)

Any help you can provide in this area woudl be appreciated.

···

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

On a wxTreeCtrl, I usually want users to be able to edit the label on tree
items, so I set the style in the wxTreeCtrl constructor to wxTR_EDIT_LABELS.
However, depending on user actions, there are certain conditions under which
I don't want users to be able to edit the labels. Is there a way to
intercept the EVT_TREE_BEGIN_LABEL_EDIT event before the tree control goes
into the label edit mode? If not, is there a way to drop the wxTreeCtrl out
of edit mode from within the OnBeginLabelEdit event handler without causing
the EVT_TREE_END_LABEL_EDIT event to be generated?

Thanks.

Paul Gardella

Never mind...figured it out. Thanks.

···

-----Original Message-----
From: Paul Gardella [mailto:pgardell@bbn.com]
Sent: Thursday, October 30, 2003 4:17 PM
To: wxPython-users@lists.wxwindows.org
Subject: [wxPython-users] Label editing in wxTreeCtrl

On a wxTreeCtrl, I usually want users to be able to edit the label on tree
items, so I set the style in the wxTreeCtrl constructor to wxTR_EDIT_LABELS.
However, depending on user actions, there are certain conditions under which
I don't want users to be able to edit the labels. Is there a way to
intercept the EVT_TREE_BEGIN_LABEL_EDIT event before the tree control goes
into the label edit mode? If not, is there a way to drop the wxTreeCtrl out
of edit mode from within the OnBeginLabelEdit event handler without causing
the EVT_TREE_END_LABEL_EDIT event to be generated?

Thanks.

Paul Gardella

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

Paul Gardella wrote:

On a wxTreeCtrl, I usually want users to be able to edit the label on tree
items, so I set the style in the wxTreeCtrl constructor to wxTR_EDIT_LABELS.
However, depending on user actions, there are certain conditions under which
I don't want users to be able to edit the labels. Is there a way to
intercept the EVT_TREE_BEGIN_LABEL_EDIT event before the tree control goes
into the label edit mode? If not, is there a way to drop the wxTreeCtrl out
of edit mode from within the OnBeginLabelEdit event handler without causing
the EVT_TREE_END_LABEL_EDIT event to be generated?

You can use event.Veto() to stop the edit. I don't know if it still sends the END or not though.

···

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

I've tried it, and apparently it does NOT send the END event. Thanks.

Paul

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Friday, October 31, 2003 5:47 PM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] Label editing in wxTreeCtrl

Paul Gardella wrote:

On a wxTreeCtrl, I usually want users to be able to edit the label on tree
items, so I set the style in the wxTreeCtrl constructor to

wxTR_EDIT_LABELS.

However, depending on user actions, there are certain conditions under

which

I don't want users to be able to edit the labels. Is there a way to
intercept the EVT_TREE_BEGIN_LABEL_EDIT event before the tree control goes
into the label edit mode? If not, is there a way to drop the wxTreeCtrl

out

of edit mode from within the OnBeginLabelEdit event handler without

causing

the EVT_TREE_END_LABEL_EDIT event to be generated?

You can use event.Veto() to stop the edit. I don't know if it still
sends the END or not though.

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

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