PyAUI Updates ;-)

Hello NG,

  just a small update about the PyAUI Development. I have uploaded a new version, in the usual places:

http://xoomer.alice.it/infinity77/eng/PyAUI.html

Or:

http://xoomer.alice.it/infinity77/ita/PyAUI.html

This update should fix the refresh problems that Matthias and Gunther has found (but also the Stable version has the same fix). Moreover, the development version now includes (in addition to the features already present yesterday):

7) Handles wx.EVT_CLOSE event for floating panes (thanks to DJ Gilcrease);
8) Possibility to draw a sash visual grip, for enhanced visualization of sashes (chech the "Settings Pane" in the demo).

If someone has other patches/bug reports or development ideas, please let me know.

Andrea.

···

_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London

Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Hi Andrea. On Mac, I am receiving the following tracebacks using the demo. In addition, I can no longer delete a pane in either version. In both versions, I get a pointer to get a handle on a toolbar but cannot readily release it. As an example if I want to slide the top right toolbar beside the toolbar on the second row, I cannot let go of it unless I pop it out of the dock. I can then place it where I want it. Before, I believe you were able to release it by double click

Stable version:

Traceback (most recent call last):
   File "/Users/davidpratt/Desktop/PyAUI_Stable/PyAUI.py", line 4667, in OnLeftUp
     self.UpdateButtonOnScreen(self._action_part, event)
   File "/Users/davidpratt/Desktop/PyAUI_Stable/PyAUI.py", line 4433, in UpdateButtonOnScreen
     button_ui_part.rect, hit_test.pane)
   File "/Users/davidpratt/Desktop/PyAUI_Stable/PyAUI.py", line 799, in DrawPaneButton
     if pane.state & PaneInfo.optionActive:
AttributeError: 'NoneType' object has no attribute 'state'

Development version:

Traceback (most recent call last):
   File "/Users/davidpratt/Desktop/PyAUI_Development/PyAUI.py", line 4788, in OnLeftUp
     self.UpdateButtonOnScreen(self._action_part, event)
   File "/Users/davidpratt/Desktop/PyAUI_Development/PyAUI.py", line 4709, in UpdateButtonOnScreen
     button_ui_part.rect, hit_test.pane)
AttributeError: 'NoneType' object has no attribute 'pane'

Regards,
David

Gavana, Andrea wrote:

···

Hello NG,

  just a small update about the PyAUI Development. I have uploaded a new version, in the usual places:

http://xoomer.alice.it/infinity77/eng/PyAUI.html

Or:

http://xoomer.alice.it/infinity77/ita/PyAUI.html

This update should fix the refresh problems that Matthias and Gunther has found (but also the Stable version has the same fix). Moreover, the development version now includes (in addition to the features already present yesterday):

7) Handles wx.EVT_CLOSE event for floating panes (thanks to DJ Gilcrease);
8) Possibility to draw a sash visual grip, for enhanced visualization of sashes (chech the "Settings Pane" in the demo).

If someone has other patches/bug reports or development ideas, please let me know.

Andrea.

_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London
Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

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

Hello David,

Hi Andrea. On Mac, I am receiving the following tracebacks using the
demo. In addition, I can no longer delete a pane in either version. In
both versions, I get a pointer to get a handle on a toolbar but cannot
readily release it. As an example if I want to slide the top right
toolbar beside the toolbar on the second row, I cannot let go of it
unless I pop it out of the dock. I can then place it where I want it.
Before, I believe you were able to release it by double click

Well, it's quite amazing this... the Stable version and PyAUI 0.9.2
are practically identical, so I wasn't expecting such a mess on Mac.
The only big difference that I can see is around line 4160, where
there is an entire section commented out. Can you try to uncomment
that section and see if the toolbar thing works? I am not sure about
it, I have removed that section because it only created bad repainting
effect while dragging toolbars. For the rest, the two files in 0.9.2
and in Stable are identical...
I don't know what I can do for this problem... as you know I don't
have a Mac, so it would be very difficult for me to test even the
smallest modification. Surely Chris can help you more effectively, he
has a Mac and he is far more skilled in wxPython than I am.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

Hi Andrea. A change seems to have slipped into the stable version without any Mac testing. There was previously an event.skip() commented out (last line of OnLeftDown method) in 0.9.1 that worked with Mac.

When this is uncommented it causes the effects I have described making it completely unusable. If this is required for the other platforms, then this should be changed to the following or something specific to the platform targeted for the event.Skip()

         if wx.Platform != "__WXMAC__":
             event.Skip()

I am willing test modifications on Mac before the stable version so please send me a note when this is required since I realize you do not have a Mac.

I am hoping this code will end up in a repository since going through all the minor changes from a diff for 4000 - 5000 lines takes some time where this could have been backed off to a specific revision to see where it worked last. I am not sure where Robin is with the project repository but it would be useful for sure. Many thanks.

Regards,
David

Andrea Gavana wrote:

···

Hello David,

Hi Andrea. On Mac, I am receiving the following tracebacks using the
demo. In addition, I can no longer delete a pane in either version. In
both versions, I get a pointer to get a handle on a toolbar but cannot
readily release it. As an example if I want to slide the top right
toolbar beside the toolbar on the second row, I cannot let go of it
unless I pop it out of the dock. I can then place it where I want it.
Before, I believe you were able to release it by double click

Well, it's quite amazing this... the Stable version and PyAUI 0.9.2
are practically identical, so I wasn't expecting such a mess on Mac.
The only big difference that I can see is around line 4160, where
there is an entire section commented out. Can you try to uncomment
that section and see if the toolbar thing works? I am not sure about
it, I have removed that section because it only created bad repainting
effect while dragging toolbars. For the rest, the two files in 0.9.2
and in Stable are identical...
I don't know what I can do for this problem... as you know I don't
have a Mac, so it would be very difficult for me to test even the
smallest modification. Surely Chris can help you more effectively, he
has a Mac and he is far more skilled in wxPython than I am.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

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

Hello David,

Hi Andrea. A change seems to have slipped into the stable version
without any Mac testing. There was previously an event.skip() commented
out (last line of OnLeftDown method) in 0.9.1 that worked with Mac.

Thanks about that, I was shooting in the dark about this Mac issue :slight_smile:
I will upload a new Stable and Development version in few minutes,
with this patch applied.

I am hoping this code will end up in a repository since going through
all the minor changes from a diff for 4000 - 5000 lines takes some time
where this could have been backed off to a specific revision to see
where it worked last. I am not sure where Robin is with the project
repository but it would be useful for sure. Many thanks.

I have no idea about that. My first feeling is that Robin will
SWIG-wrap the wxWidgets implementation of wxAUI, so I imagine that
PyAUI will become obsolete and deprecated. It's a pity, but I can't do
anything about that :frowning:
In any case, it would be helpful to have such a repository, but please
keep in mind that I have no idea about handling a repository or CVS or
SVN things :slight_smile:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

I have got a SVN repository on a well maintained server with plenty of
bandwidth.
I am happy to provide it for such projects. I have just created a
new "wxPyExtras" repository, and if Andrea Gavana agrees to use it, I will
put all details forward to this list

Horst

···

On Sunday 25 June 2006 18:40, Andrea Gavana wrote:

> where it worked last. I am not sure where Robin is with the project
> repository but it would be useful for sure. Many thanks.

I have no idea about that. My first feeling is that Robin will
SWIG-wrap the wxWidgets implementation of wxAUI, so I imagine that
PyAUI will become obsolete and deprecated. It's a pity, but I can't do
anything about that :frowning:
In any case, it would be helpful to have such a repository, but please
keep in mind that I have no idea about handling a repository or CVS or
SVN things :slight_smile:

David Pratt wrote:

I am hoping this code will end up in a repository since going through all the minor changes from a diff for 4000 - 5000 lines takes some time where this could have been backed off to a specific revision to see where it worked last. I am not sure where Robin is with the project repository but it would be useful for sure. Many thanks.

We have a SF project set up for it, and Kevin O. is working on some website support for it. (For registering projects I think, and also for publishing component documentation, etc.) We'll also have some support for installing all add-on components in a predictable way, etc. I'm hoping it will be ready soon for people to start actively using.

···

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