Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96073 > unrolled thread

Trying pmw with python3: Lots of crashes!

Started byPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
First post2015-09-06 19:47 +0100
Last post2015-09-06 15:33 -0400
Articles 8 — 5 participants

Back to article view | Back to comp.lang.python


Contents

  Trying pmw with python3: Lots of crashes! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-09-06 19:47 +0100
    Re: Trying pmw with python3: Lots of crashes! Michael Torrie <torriem@gmail.com> - 2015-09-06 13:20 -0600
      Re: Trying pmw with python3: Lots of crashes! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-09-07 02:40 +0100
        Re: Trying pmw with python3: Lots of crashes! Christian Gollwitzer <auriocus@gmx.de> - 2015-09-07 07:24 +0200
          Re: Trying pmw with python3: Lots of crashes! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-09-08 02:04 +0100
    Re: Trying pmw with python3: Lots of crashes! Laura Creighton <lac@openend.se> - 2015-09-06 21:27 +0200
      Re: Trying pmw with python3: Lots of crashes! Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-09-07 02:51 +0100
    Re: Trying pmw with python3: Lots of crashes! Terry Reedy <tjreedy@udel.edu> - 2015-09-06 15:33 -0400

#96073 — Trying pmw with python3: Lots of crashes!

FromPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Date2015-09-06 19:47 +0100
SubjectTrying pmw with python3: Lots of crashes!
Message-ID<msi1nr$np6$1@speranza.aioe.org>
Hi!

I took a look at tkinter. It is pretty simple but it's very hard to
construct some relatively more complex widgets.

So I looked at pmw.
Because my system only have pmw for python2, I downloaded pmw2 from its
site and installed it manually using pysetup.py install.

Trying the examples ...:
Some run fine.
Some just segfault!
Others crash with the folloing message:
	"No such Pmw version 'on3-pmw-doc'. Using default version '2.0.0'"

Is there anybody using pmw who can explain possible reasons for this?

Should I use it for small apps that need:
	1 or more canvas scrollable windows?
	1 scrollable list with several (few) column editable fields?

Do I need to go to more complex system like wxwidgets or pyside (QT)?
I looked at the last one but, from the 1st steps, it seems too complex.

Thanks.

[toc] | [next] | [standalone]


#96074

FromMichael Torrie <torriem@gmail.com>
Date2015-09-06 13:20 -0600
Message-ID<mailman.182.1441567260.8327.python-list@python.org>
In reply to#96073
On 09/06/2015 12:47 PM, Paulo da Silva wrote:
> Do I need to go to more complex system like wxwidgets or pyside (QT)?
> I looked at the last one but, from the 1st steps, it seems too complex.

Before anyone can suggest toolkits to look at, what kind of GUI are you
trying to build?  What kind of "complex" widgets are you trying to
construct?  By their very nature "complex" widgets are going to be,
well, complex.   Do you need data-driven forms?

[toc] | [prev] | [next] | [standalone]


#96090

FromPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Date2015-09-07 02:40 +0100
Message-ID<msipv0$b29$1@speranza.aioe.org>
In reply to#96074
Às 20:20 de 06-09-2015, Michael Torrie escreveu:
> On 09/06/2015 12:47 PM, Paulo da Silva wrote:
>> Do I need to go to more complex system like wxwidgets or pyside (QT)?
>> I looked at the last one but, from the 1st steps, it seems too complex.
> 
> Before anyone can suggest toolkits to look at, what kind of GUI are you
> trying to build?

It's in the post.
Simple widgets except for one multicolumn scrollable and editable list
and, in another case, a few grouped scrollable canvas.

[toc] | [prev] | [next] | [standalone]


#96095

FromChristian Gollwitzer <auriocus@gmx.de>
Date2015-09-07 07:24 +0200
Message-ID<msj6v1$vjr$1@dont-email.me>
In reply to#96090
Am 07.09.15 um 03:40 schrieb Paulo da Silva:
> Às 20:20 de 06-09-2015, Michael Torrie escreveu:
>> On 09/06/2015 12:47 PM, Paulo da Silva wrote:
>>> Do I need to go to more complex system like wxwidgets or pyside (QT)?
>>> I looked at the last one but, from the 1st steps, it seems too complex.
>>
>> Before anyone can suggest toolkits to look at, what kind of GUI are you
>> trying to build?
>
> It's in the post.
> Simple widgets except for one multicolumn scrollable and editable list
> and, in another case, a few grouped scrollable canvas.
>
For a multicolumn editable list I suggest using tablelist. There are 
Python bindings around. Scrolling in Tk is generally done by grouping 
together scrollbars and widgets in a frame and connecting the scrollbars 
scrollcommands with xview/yview.

	Christian

[toc] | [prev] | [next] | [standalone]


#96104

FromPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Date2015-09-08 02:04 +0100
Message-ID<mslc71$7qj$1@speranza.aioe.org>
In reply to#96095
Às 06:24 de 07-09-2015, Christian Gollwitzer escreveu:
> Am 07.09.15 um 03:40 schrieb Paulo da Silva:
...

>>
> For a multicolumn editable list I suggest using tablelist. There are
> Python bindings around. Scrolling in Tk is generally done by grouping
> together scrollbars and widgets in a frame and connecting the scrollbars
> scrollcommands with xview/yview.
> 
I have found tablelist (tklib) and a wrapper to python2.
May be I'll give it a try changing the wrapper to python3.
For now I am trying (learning) Laura's suggestion kivy.

Thanks.
Paulo

[toc] | [prev] | [next] | [standalone]


#96075

FromLaura Creighton <lac@openend.se>
Date2015-09-06 21:27 +0200
Message-ID<mailman.183.1441567658.8327.python-list@python.org>
In reply to#96073
In a message of Sun, 06 Sep 2015 19:47:25 +0100, Paulo da Silva writes:
>Hi!
>
>I took a look at tkinter. It is pretty simple but it's very hard to
>construct some relatively more complex widgets.
>
>So I looked at pmw.
>Because my system only have pmw for python2, I downloaded pmw2 from its
>site and installed it manually using pysetup.py install.
>
>Trying the examples ...:
>Some run fine.
>Some just segfault!
>Others crash with the folloing message:
>	"No such Pmw version 'on3-pmw-doc'. Using default version '2.0.0'"
>
>Is there anybody using pmw who can explain possible reasons for this?
>
>Should I use it for small apps that need:
>	1 or more canvas scrollable windows?
>	1 scrollable list with several (few) column editable fields?
>
>Do I need to go to more complex system like wxwidgets or pyside (QT)?
>I looked at the last one but, from the 1st steps, it seems too complex.
>
>Thanks.

Did you get it from PyPI?
https://pypi.python.org/pypi/Pmw/2.0.0  ?

Last I heard Andy Robinson of reportlab had made it work with Python3.0,
so you might ask him about bizarre crashes.

You might also want to look at kivy, which works on desktops as well as
on mobile devices.  Get the examples directory and run the demos to see
if what it can do looks like what you want.

Laura

[toc] | [prev] | [next] | [standalone]


#96091

FromPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Date2015-09-07 02:51 +0100
Message-ID<msiqil$c08$1@speranza.aioe.org>
In reply to#96075
Às 20:27 de 06-09-2015, Laura Creighton escreveu:
> In a message of Sun, 06 Sep 2015 19:47:25 +0100, Paulo da Silva writes:
>> Hi!
>>
...

> 
> Did you get it from PyPI?
> https://pypi.python.org/pypi/Pmw/2.0.0  ?
I got it from sourceforge but I checked now and it has the same md5.

> 
> Last I heard Andy Robinson of reportlab had made it work with Python3.0,
> so you might ask him about bizarre crashes.
Yes. pmw 2 works with python3. I saw in setup.py the code to install for
python2 and python3 depending on the python interpreter used.
And it is correctly installed in my python3 system. Some examples work
perfectly.
I have sent an email to Andy.

> 
> You might also want to look at kivy, which works on desktops as well as
> on mobile devices.  Get the examples directory and run the demos to see
> if what it can do looks like what you want.
> 
I have just installed it and successfully was able to run the 1st.
example. It has the big advantage of being portable to android!!

Thank you Laura for your suggestions.

[toc] | [prev] | [next] | [standalone]


#96077

FromTerry Reedy <tjreedy@udel.edu>
Date2015-09-06 15:33 -0400
Message-ID<mailman.185.1441568111.8327.python-list@python.org>
In reply to#96073
On 9/6/2015 2:47 PM, Paulo da Silva wrote:
> Hi!
>
> I took a look at tkinter. It is pretty simple but it's very hard to
> construct some relatively more complex widgets.
>
> So I looked at pmw.
> Because my system only have pmw for python2, I downloaded pmw2 from its
> site and installed it manually using pysetup.py install.

> Trying the examples ...:

First run Tools/Script/2to3.py to convert 2.x code to 3.x code. See the 
docstring.

> Some run fine.
> Some just segfault!
> Others crash with the folloing message:
> 	"No such Pmw version 'on3-pmw-doc'. Using default version '2.0.0'"
>
> Is there anybody using pmw who can explain possible reasons for this?
>
> Should I use it for small apps that need:
> 	1 or more canvas scrollable windows?
> 	1 scrollable list with several (few) column editable fields?
>
> Do I need to go to more complex system like wxwidgets or pyside (QT)?
> I looked at the last one but, from the 1st steps, it seems too complex.
>
> Thanks.
>


-- 
Terry Jan Reedy

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web