By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,369 Members | 1,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,369 IT Pros & Developers. It's quick & easy.

What Are These Import/From Statements about?

P: n/a
Is there a single source that explains these statements?
------------------------------
from Tkinter import *
from Numeric import *
import Image
import ImageChops
import ImageTk
import time
import binascii
import tkMessageBox
import tkSimpleDialog

from tkFileDialog import asksaveasfilename
from tkFileDialog import askopenfilename

import MakeQTE

import socket
import struct
import glob
import bisect
import os, os.path
import datetime

from os.path import basename, splitext
---------------------------------------------

--
Wayne Watson (Nevada City, CA)

Web Page: <speckledwithStars.net>
Aug 22 '07 #1
Share this Question
Share on Google+
5 Replies

P: n/a
W. Watson wrote:
Is there a single source that explains these statements?
http://docs.python.org/tut/node8.html

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Aug 22 '07 #2

P: n/a
While that's an interesting link, I was thinking of the named items like:
Numeric, (this one I know about.)
Image
ImageChops
ImageTk
time
binascii
tkMessageBox
tkSimpleDialog

...
For example, what is the Image module? MakeQTE? ospath?

Robert Kern wrote:
W. Watson wrote:
>Is there a single source that explains these statements?

http://docs.python.org/tut/node8.html
--
Wayne Watson (Nevada City, CA)

Web Page: <speckledwithStars.net>
Aug 22 '07 #3

P: n/a
W. Watson wrote:
While that's an interesting link, I was thinking of the named items like:
Okay, sorry.
Numeric, (this one I know about.)
Image
ImageChops
ImageTk
The Image* modules are from PIL.
http://www.pythonware.com/products/pil/
time
http://docs.python.org/lib/module-time.html
binascii
http://docs.python.org/lib/module-binascii.html
tkMessageBox
tkSimpleDialog
These are also from the standard library. See your lib-tk/ directory.
http://effbot.org/tkinterbook/tkinte...rd-dialogs.htm
http://effbot.org/tkinterbook/tkinte...og-windows.htm
...
For example, what is the Image module? MakeQTE?
MakeQTE is new to me. Google only brings up this thread.
ospath?
os.path. It's a sub-module of the standard os module.
http://docs.python.org/lib/module-os.path.html

socket, struct, glob, bisect, and datetime are standard library modules.
http://docs.python.org/modindex.html

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Aug 22 '07 #4

P: n/a
W. Watson wrote:
Thanks very much. Where's the global index?
http://docs.python.org/modindex.html

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Aug 23 '07 #5

P: n/a
In message <ma**************************************@python.o rg>, Robert
Kern wrote:
os.path. It's a sub-module of the standard os module.
Actually, there are no such things as sub-modules (as you'll find out if you
try to define one). What it really is is a variable in that module, which
points to another module (e.g. posixpath).
Aug 23 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.