On Mon, Nov 30, 2015 at 7:44 PM, Dennis Lee Bieber
wrote:
> On Mon, 30 Nov 2015 10:55:23 -0800 (PST), fl declaimed
> the following:
>
>>Thanks Ian. I created the class because I want to use the original example
>>line
>>
>> UI.Button("button %s" % i, callback)
>>
>>Is there another way to use the
On Monday, November 30, 2015 at 12:02:57 PM UTC-5, Ian wrote:
> On Mon, Nov 30, 2015 at 10:44 AM, fl wrote:
> > I come across the following code snippet.
> >
> > for i in range(10):
> > def callback():
> > print "clicked button", i
> > UI.Button("button %s" % i, callback)
> >
> > T
On Mon, Nov 30, 2015 at 10:36 AM, fl wrote:
> Thanks for the replies. Now, I have the following code:
>
>
>
> class buibutton():
> print 'sd'
> def __nonzero__(self):
>return False
>
> def Button(self, ii, callbackk):
> callbackk()
> return
> UI=buibutton()
>
>
On Monday, November 30, 2015 at 12:37:52 PM UTC-5, Terry Reedy wrote:
> On 11/30/2015 11:44 AM, fl wrote:
>
> > I come across the following code snippet.
>
> > for i in range(10):
> > def callback():
> > print "clicked button", i
> > UI.Button("button %s" % i, callback)
>
> >
On Monday, November 30, 2015 at 11:44:44 AM UTC-5, fl wrote:
> Hi,
>
> I come across the following code snippet.
>
>
>
>
>
> for i in range(10):
> def callback():
> print "clicked button", i
> UI.Button("button %s" % i, callback)
>
>
>
>
> The content inside parenthesis in
On 11/30/2015 11:44 AM, fl wrote:
I come across the following code snippet.
for i in range(10):
def callback():
print "clicked button", i
UI.Button("button %s" % i, callback)
http://effbot.org/zone/default-values.htm
Note that the above is an intentional example of com
On Mon, Nov 30, 2015 at 10:44 AM, fl wrote:
> I come across the following code snippet.
>
> for i in range(10):
> def callback():
> print "clicked button", i
> UI.Button("button %s" % i, callback)
>
> The content inside parenthesis in last line is strange to me.
>
> "button %s" % i
On Mon, Nov 30, 2015 at 10:53 AM, Zachary Ware
wrote:
> On Mon, Nov 30, 2015 at 10:44 AM, fl wrote:
>> The content inside parenthesis in last line is strange to me.
>>
>> "button %s" % i, callback
>
> https://docs.python.org/library/stdtypes.html#printf-style-string-formatting
Sorry, should have
On Mon, Nov 30, 2015 at 10:44 AM, fl wrote:
> The content inside parenthesis in last line is strange to me.
>
> "button %s" % i, callback
https://docs.python.org/library/stdtypes.html#printf-style-string-formatting
--
Zach
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I come across the following code snippet.
for i in range(10):
def callback():
print "clicked button", i
UI.Button("button %s" % i, callback)
The content inside parenthesis in last line is strange to me.
"button %s" % i, callback
That is, the writing looks like reco
10 matches
Mail list logo