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


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

Re: very lightweight gui for win32 + python 3.4

Started byChris Angelico <rosuav@gmail.com>
First post2014-09-13 03:26 +1000
Last post2014-09-13 03:26 +1000
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: very lightweight gui for win32 + python 3.4 Chris Angelico <rosuav@gmail.com> - 2014-09-13 03:26 +1000

#77817 — Re: very lightweight gui for win32 + python 3.4

FromChris Angelico <rosuav@gmail.com>
Date2014-09-13 03:26 +1000
SubjectRe: very lightweight gui for win32 + python 3.4
Message-ID<mailman.13979.1410542763.18130.python-list@python.org>
On Sat, Sep 13, 2014 at 3:08 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
>> There's absolutely no reason to go Windows-specific. Use Tkinter -
>> it's pretty light-weight. Comes with most Python distros. See how it
>> goes in terms of code size - if it's unsuitable, then look at others,
>> but start with the obvious option.
>>
>> ChrisA
>>
>
> As IDLE comes with all Python distros shouldn't the same apply to tkinter as
> that's what IDLE is based around?

It doesn't, though. It comes with most. It's perfectly possible to
have a minimal Python with no Tkinter and therefore no Idle; on my
Debian systems, there's a separate "python-tk" package on which "idle"
depends, but "python" doesn't.

rosuav@dewey:~$ python
Python 2.7.8 (default, Aug 18 2014, 10:01:58)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package

I believe Tkinter and Idle come with all Windows MSI installers
downloaded from python.org, but I can't state even that with
certainty, so I just kept it to "most" for safety. If I'd said "all",
I'm pretty sure something would have proven me wrong, and knowing my
luck, it would have been the OP's system :)

ChrisA

[toc] | [standalone]


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


csiph-web