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


Groups > comp.lang.python > #5533

Re: problem with GKT module?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe02.iad.POSTED!00000000!not-for-mail
From harrismh777 <harrismh777@charter.net>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101206 SeaMonkey/2.0.11
MIME-Version 1.0
Newsgroups comp.lang.python
Subject Re: problem with GKT module?
References <w7azp.13536$IL2.10719@newsfe04.ams2> <hzOzp.4673$2E6.769@newsfe18.ams2> <qi%zp.1052$dj2.973@newsfe20.iad> <XM8Ap.541$t41.164@newsfe25.ams2>
In-Reply-To <XM8Ap.541$t41.164@newsfe25.ams2>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Lines 34
Message-ID <YjfAp.4143$eb4.1206@newsfe02.iad> (permalink)
NNTP-Posting-Host bhfalnmnehkiipialjpjhagkcaihegig
X-Complaints-To abuse@charter.net
X-Trace pdjoodfomhkjcoobffhhjjcnmknpkahnjipdoajndcleafmjbhfalnmnehkiipianekoekikajhpenheldhcoppenncmgmbmffpblkidhiocobcklgibnbdoecmpeplabgjklipccefckbgb
NNTP-Posting-Date Mon, 16 May 2011 19:56:40 UTC
Date Mon, 16 May 2011 14:56:38 -0500
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5533

Show key headers only | View raw


alister ware wrote:
> 	def callback(self,widget,data=None):
> 		print widget	              #gives reference to radio button ok
> 		print widget.name             #widget name on windoze, None on linux

Well, you're obviously using Python 2.x ...

    ... have you tried this in Python 3.x ?


Neither here nor there...  you need to know who/what is generating 
'widget'.  Is widget buried in gtk where you can't see how it works, or 
is widget a Python class (or wrapper) where you can see what its doing?

The fact that widget.name returns None on the linux platform tells me 
that widget is a Python class (or wrapper) ... so you probably have a 
widget.py file somewhere... or some other module that widget is a class 
definition in... who knows... (at this point).

It seems to me that the 'builder' is behaving differently on the two 
platforms (rather than Python is behaving differently on the two platforms).

What happens if you change the data=None pair?

What happens if you omit data=None pair?

Do you see this difference with *all* widgets, or just radio buttons?



kind regards,
m harris

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

problem with GKT module? alister ware <alister.ware@ntlworld.com> - 2011-05-13 13:13 +0000
  Re: problem with GKT module? Alister Ware <alister.ware@ntlworld.com> - 2011-05-15 11:13 +0000
    Re: problem with GKT module? harrismh777 <harrismh777@charter.net> - 2011-05-15 20:42 -0500
      Re: problem with GKT module? alister ware <alister.ware@ntlworld.com> - 2011-05-16 12:29 +0000
        Re: problem with GKT module? harrismh777 <harrismh777@charter.net> - 2011-05-16 14:56 -0500
          Re: problem with GKT module? Alister Ware <alister.ware@ntlworld.com> - 2011-05-17 19:26 +0000
    Re: problem with GKT module? Anssi Saari <as@sci.fi> - 2011-05-16 23:02 +0300

csiph-web