problem with gizmos

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with gizmos

Pierre-Alain Moret
Hi everybody,

I have now a new problem with phoenix on MacOS 10.13.2 and python 2.7.12:

  File "/Volumes/Public/medwx/imagestreelist.py", line 11, in <module>

    from wx.gizmos import TreeListCtrl

ImportError: No module named gizmos


I still found an example using gizmos with phoenix : https://github.com/wxWidgets/Phoenix/blob/master/demo/LEDNumberCtrl.py


So, gizmos seems to be supported.


What could be the problem ?


Thanks in advance for any help.


Pierre-Alain Moret


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: problem with gizmos

Robin Dunn

The gizmos module hasn't yet been ported to Phoenix. Since the C++ classes it was based on are no longer maintained it seemed to make more sense to port them to pure Python code instead of wrapping the C++ classes. The work for that is ongoing, and you can see the current code in this PR: https://github.com/wxWidgets/Phoenix/pull/659  The LEDNumberCtrl class is there and is working. The last big hurdle to complete is the TreeListCtrl.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org


On Friday, December 29, 2017 at 11:42:24 AM UTC-8, Pierre-Alain Moret wrote:
Hi everybody,

I have now a new problem with phoenix on MacOS 10.13.2 and python 2.7.12:

  File "/Volumes/Public/medwx/imagestreelist.py", line 11, in <module>

    from wx.gizmos import TreeListCtrl

ImportError: No module named gizmos


I still found an example using gizmos with phoenix : <a href="https://github.com/wxWidgets/Phoenix/blob/master/demo/LEDNumberCtrl.py" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fblob%2Fmaster%2Fdemo%2FLEDNumberCtrl.py\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFE7ugclUlmdKkD-8MfVdpNvvE7WA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fblob%2Fmaster%2Fdemo%2FLEDNumberCtrl.py\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFE7ugclUlmdKkD-8MfVdpNvvE7WA&#39;;return true;">https://github.com/wxWidgets/Phoenix/blob/master/demo/LEDNumberCtrl.py


So, gizmos seems to be supported.


What could be the problem ?


Thanks in advance for any help.


Pierre-Alain Moret


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: problem with gizmos

Andrea Gavana
Hi Robin,


On Sat, 30 Dec 2017 at 00.32, Robin Dunn <[hidden email]> wrote:

The gizmos module hasn't yet been ported to Phoenix. Since the C++ classes it was based on are no longer maintained it seemed to make more sense to port them to pure Python code instead of wrapping the C++ classes. The work for that is ongoing, and you can see the current code in this PR: https://github.com/wxWidgets/Phoenix/pull/659  The LEDNumberCtrl class is there and is working. The last big hurdle to complete is the TreeListCtrl.


Isn’t most (all?) of the functionality in gizmos TreeListCtrl covered by AGW HyperTreeList? Seems like a lot of duplicated effort...

However, since you started the port already, I believe most of the logic (if not most of the code) can be borrowed from HyperTreeList.

Andrea.



-- 
Robin Dunn
Software Craftsman


On Friday, December 29, 2017 at 11:42:24 AM UTC-8, Pierre-Alain Moret wrote:
Hi everybody,

I have now a new problem with phoenix on MacOS 10.13.2 and python 2.7.12:

  File "/Volumes/Public/medwx/imagestreelist.py", line 11, in <module>

    from wx.gizmos import TreeListCtrl

ImportError: No module named gizmos


I still found an example using gizmos with phoenix : https://github.com/wxWidgets/Phoenix/blob/master/demo/LEDNumberCtrl.py


So, gizmos seems to be supported.


What could be the problem ?


Thanks in advance for any help.


Pierre-Alain Moret


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: problem with gizmos

Pierre-Alain Moret
In reply to this post by Robin Dunn
Thanks for your answer.
Every thing is clear for me now

Le samedi 30 décembre 2017 00:32:44 UTC+1, Robin Dunn a écrit :

The gizmos module hasn't yet been ported to Phoenix. Since the C++ classes it was based on are no longer maintained it seemed to make more sense to port them to pure Python code instead of wrapping the C++ classes. The work for that is ongoing, and you can see the current code in this PR: <a href="https://github.com/wxWidgets/Phoenix/pull/659" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fpull%2F659\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEHAljP5OzQ2JQp4L3qTUGE7kLOJA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fpull%2F659\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEHAljP5OzQ2JQp4L3qTUGE7kLOJA&#39;;return true;">https://github.com/wxWidgets/Phoenix/pull/659  The LEDNumberCtrl class is there and is working. The last big hurdle to complete is the TreeListCtrl.

-- 
Robin Dunn
Software Craftsman
<a href="http://wxPython.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FwxPython.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG9kM-NEpJfIvl_lWJvA23SuLjOA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FwxPython.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG9kM-NEpJfIvl_lWJvA23SuLjOA&#39;;return true;">http://wxPython.org


On Friday, December 29, 2017 at 11:42:24 AM UTC-8, Pierre-Alain Moret wrote:
Hi everybody,

I have now a new problem with phoenix on MacOS 10.13.2 and python 2.7.12:

  File "/Volumes/Public/medwx/imagestreelist.py", line 11, in <module>

    from wx.gizmos import TreeListCtrl

ImportError: No module named gizmos


I still found an example using gizmos with phoenix : <a href="https://github.com/wxWidgets/Phoenix/blob/master/demo/LEDNumberCtrl.py" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fblob%2Fmaster%2Fdemo%2FLEDNumberCtrl.py\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFE7ugclUlmdKkD-8MfVdpNvvE7WA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fblob%2Fmaster%2Fdemo%2FLEDNumberCtrl.py\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFE7ugclUlmdKkD-8MfVdpNvvE7WA&#39;;return true;">https://github.com/wxWidgets/Phoenix/blob/master/demo/LEDNumberCtrl.py


So, gizmos seems to be supported.


What could be the problem ?


Thanks in advance for any help.


Pierre-Alain Moret


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: problem with gizmos

Robin Dunn
In reply to this post by Andrea Gavana


On Friday, December 29, 2017 at 9:39:27 PM UTC-8, Infinity77 wrote:
Hi Robin,


On Sat, 30 Dec 2017 at 00.32, Robin Dunn <[hidden email]> wrote:

The gizmos module hasn't yet been ported to Phoenix. Since the C++ classes it was based on are no longer maintained it seemed to make more sense to port them to pure Python code instead of wrapping the C++ classes. The work for that is ongoing, and you can see the current code in this PR: <a href="https://github.com/wxWidgets/Phoenix/pull/659" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fpull%2F659\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEHAljP5OzQ2JQp4L3qTUGE7kLOJA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fpull%2F659\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEHAljP5OzQ2JQp4L3qTUGE7kLOJA&#39;;return true;">https://github.com/wxWidgets/Phoenix/pull/659  The LEDNumberCtrl class is there and is working. The last big hurdle to complete is the TreeListCtrl.


Isn’t most (all?) of the functionality in gizmos TreeListCtrl covered by AGW HyperTreeList? Seems like a lot of duplicated effort...

However, since you started the port already, I believe most of the logic (if not most of the code) can be borrowed from HyperTreeList.


Yeah, I had the same thought shortly after I started the TLC port.  But I had already started, so...  I haven't had as much time as I hoped recently to work on it, so I may still save the current TLC code in another branch and instead just add a facade class that uses the HyperTreeList behind the scenes and helps ensure compatibility with the old TLC class with minimal changes for the user code.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org



 

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.