473,804 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 asksaveasfilena me
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: <speckledwithSt ars.net>
Aug 22 '07 #1
5 1745
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: <speckledwithSt ars.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************ *************** ***********@pyt hon.org>, 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
19188
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
54
6585
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO FRICKIN' COOL!!! ***MAN*** that would save me a buttload of work and make my life sooooo much easier!" As opposed to minor differences of this feature here, that feature there. Variations on style are of no interest to me. I'm coming at this from a...
7
2248
by: Matthew Wilson | last post by:
Hi- I'm writing a bunch of classes, several of which need functions and variables defined in the math module. In some instances, I'm going to import my module like this: import myshapes and then in others, I'll do:
2
1509
by: Aahz | last post by:
There were some posts recently discussing whether it's poor style to put import statements inside functions. I recently got reminded that there's one very good reason to avoid it: Python has an import lock that blocks more than one thread from executing import statements. Putting import statements inside functions that might be called in a threaded environment is asking for deadlock trouble. -- Aahz (aahz@pythoncraft.com) ...
0
1297
by: John Phelan | last post by:
I had a very large number of query statements that I had converted to SQL a long time ago aticipating that I would some day upsize my application. Every now and then when I do an import to a new application, some of the forms will import corrupted, and crashing the whole application, though it works fine in the old application. Today I did some experimenting on the two most recent corrupt form files. I discovered that even when I...
10
2626
by: vivekian | last post by:
Hi , New to dot net and C# and was wondering what is the equivalent of a java package in dot net ? thanks, vivekian
2
2615
by: slacker | last post by:
By clicking a link on a website I set a USERINFO cookie and then I redirect to a program which ultimately executes an XSL file which dynamically builds an input form. The input form, while having some non dynamic hidden INPUT tags, has one hidden INPUT tag that is dynamic. In the XSL file I attempt to bring this dynamic hidden INPUT tag in via the following statements: <xsl:template match="/">
669
26259
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
7
1423
by: Anita Kean | last post by:
Hello I just downloaded the new python2.6 documentation, full of hopes it would solve some basic mysteries for me. I'm new to python, so please forgive my ignorance. I've two questions. 1) Everywhere in the old and new documentation, the string of characters "::=" is used in "explaining" things - but I can nowhere find any stated meaning of this string.
0
10569
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10325
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.