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 [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Kevin Walzer [k...@codebykevin.com] Sent: 19 May 2015 00:59 To: tkinter-discuss@python.org 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 Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss