(no subject)

Vasilis Vlachoudis <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
Hi All,

my question is not tkinter related but I could not find any help on that
I am compiling a list of commands for faster access in my application.
How can I check the type of a compiled object with isinstance()?

>>> c = compile("x+y","","eval")

>>> isinstance(c,code)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'code' is not defined

While type(c) gives a "code" object?

>>> c
<code object <module> at 0xb74a5cc8, file "", line 1>

>>> type(c)
<type 'code'>

Thanks in advance
Vasilis

________________________________________
From: Tkinter-discuss [[email protected]] on behalf of Kevin Walzer [[email protected]]
Sent: 19 May 2015 00:59
To: [email protected]
Subject: Re: [Tkinter-discuss] problems with Aqua Tcl/Tk core_8_5_branch        2015-04-28

On 5/18/15 3:17 PM, Russell Owen wrote:
> As to padding: the problem seems to be that the width computation for
> labels is overly generous: they use up far more width than they need,
> making some of my windows 25% or more wider, with lots of unwanted
> blank space. Buttons look great, but why were labels changed? They
> were fine, and looked much better before with versions 2015-03-24 and
> older.
Internally, labels are just another kind of button, so I suppose that
padding changes will affect them too. The previous tight padding made
the regular buttons look terrible, much worse than the labels do.

I'll see if I can take a look at the labels, but my time is much tighter
these days, so it may be awhile.

--Kevin

--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com

_______________________________________________
Tkinter-discuss mailing list
[email protected]
https://mail.python.org/mailman/listinfo/tkinter-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.