Thanks Robin.
You is right about absolute import. I think main problem is cyclic imports, like auibar->framemanager->auibar, and perhaps Andrea Gavana will change internal structure of AUI to a more coherent.
I corrected some things for compatibility with Python 3, but not sure that everything is correct:
some constants from ‘aui_constants.py’ replaced with ‘b’ prefix;
dock.panes.sort(PaneSortFunc) changed to dock.panes.sort(key = lambda pane: pane.dock_pos), my module have only one pane and I append check for pane count;
if cli_size <= wx.Size(20, 20): changed to if tuple(cli_size) <= tuple(wx.Size(20, 20)):;
, however it works for me on py2 and py3. See attached file.
Sorry for my English.
aui_py3.zip (201 KB)
I am sure Robin will want a patch and not the changed files.
If you are on Windows install something like TortoiseSVN and
checkout:
Copy your changed files into:
whereeveryouhave put the checkout\wxPhoenix\wx\lib\agw
Right click on the wxPhoenix folder and select “create patch” from
the TortoiseSVN menu.
If you haven’t already done so also check the following links:
- add the
tags to the changed files as mention in “Phase 2”
Werner
···
Hi Maxim,
On 01/05/2013 11:26, Maxim Kolosov wrote:
Thanks Robin.
You is right about absolute import. I think main problem is cyclic
imports, like auibar->framemanager->auibar, and perhaps
Andrea Gavana will change internal structure of AUI to
a more coherent.
I corrected some things for compatibility with Python 3, but not
sure that everything is correct:
some constants from ‘aui_constants.py’ replaced with ‘b’ prefix;
dock.panes.sort(PaneSortFunc) changed to ** dock.panes.sort(key
= lambda pane: pane.dock_pos)** , my module have only one pane
and I append check for pane count;
if cli_size <= wx.Size(20, 20): changed to ** if
tuple(cli_size) <= tuple(wx.Size(20, 20)):**;
, however it
works for me on py2 and py3. See
attached file.
http://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk
http://wiki.wxpython.org/ProjectPhoenix/LibraryMigration
http://wxpython.org/Phoenix/docs/html/main.html