Hi there.
I need to instantiate objects on the fly and put the in a list/dict for
later use. I was thinking of this:
objectlist = []
newobjectname = "object1"
classname = "class1" + "()"
objectlist.append(newobjectname = eval(classname) )
objectlist[0].method("hello world")
Can this be done? If
Oops! Here's the program:
---
from Tkinter import *
root = Tk()
z = Label(root, text="Hello World!")
z.grid()
root.mainloop()
--
Jim
- Original Message -
From: Jim Morcombe
To: python tutor mailing list
Sent: Friday, De
I have copied the following program. When I run it, (By pressing F5 from
IDLE), it displays the "Hello world" message.
When I close the window, the "Hello world" message disappears, but it seems
that the program is still running, because when I close the shell, i get the
message "The program i
This tutorial seems very specific to PythonWin IDE. I haven't tried it, but it
seems to imply that it uses stuff from PythonWin IDE that may not be available
in IDLE. Does PythonWin IDE come with any extras that aren't available in
standard Python?
- Original Message -
From: Darr
Jim Morcombe wrote:
> Are there any simple tutorials on using MS Access from Python?
Your question is ambiguous. Do you want to manipulate the data using SQL
or do you want to open an Access session as a COM server and control it?
___
Tutor maillist -
Typing 'Using MS Access from Python' into Google returned a few results, one in
particular - http://www.markcarter.me.uk/computing/python/ado.html
Hope that helps.
- Original Message -
From: Jim Morcombe
To: python tutor mailing list
Sent: Friday, December 28, 2007 1:38 AM
Su
Are there any simple tutorials on using MS Access from Python?
Jim
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Thursday 27 December 2007 08:29, [EMAIL PROTECTED] wrote:
>
> e = Elevator()
> e.show_state()
>
> raw_input("\n\nPress the enter key to exit.")
>
Two observations:
This "module-level" code that does the testing will be run when the module is
imported. A more flexible approach would be to pla
<[EMAIL PROTECTED]> wrote
> I am just starting to learn about making classes, so I wanted to put
> some
> code into a module and use it.
Good idea.
> move it into its own file and try to use an import statement to
> bring it
> in, I get errors that say that methods don't exist.
Are you remem
[EMAIL PROTECTED] wrote:
> Hi,
> Here is the offending code and error.
>
> # elevator_system.py
> # By Jim Homme
> # Simulate the behavior of a group of elevators.
> # Try to import and get error.
> # The module and this file are in the same directory.
> import elevator
> # The elevator module
> #
Hi,
Here is the offending code and error.
# elevator_system.py
# By Jim Homme
# Simulate the behavior of a group of elevators.
# Try to import and get error.
# The module and this file are in the same directory.
import elevator
# The elevator module
# This would be in a separate file.
# When I rem
Can you show us an example of the code where you're attempting to
import and the error you get?
-Rob A.
On Dec 27, 2007 7:40 AM, <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am just starting to learn about making classes, so I wanted to put some
> code into a module and use it. I know the code works b
Hi,
I am just starting to learn about making classes, so I wanted to put some
code into a module and use it. I know the code works because when I put it
in the same file that calls it, it does what it's supposed to do. When I
move it into its own file and try to use an import statement to bring it
goldgod a wrote:
> hi ,
> Is there any "festival" equivalent package in python.
GIYF
http://www.freebsoft.org/speechd
http://cheeseshop.python.org/pypi/PyFest/0.1
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/
hi ,
Is there any "festival" equivalent package in python. Any idea to
do that. Is there any modules to interact with the sounds using
python.
--
Thanks & Regards,
goldgod
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listin
15 matches
Mail list logo