472,102 Members | 1,087 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,102 software developers and data experts.

What Are These Import/From Statements about?

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
5 1667
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
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
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
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
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.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
54 posts views Thread by Brandon J. Van Every | last post: by
7 posts views Thread by Matthew Wilson | last post: by
2 posts views Thread by Aahz | last post: by
669 posts views Thread by Xah Lee | last post: by
7 posts views Thread by Anita Kean | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.