| |
thread by: Julia Goolia |
last post Jul 18 '05 by: Steve Holden
hello,
i read that it is bad to use threads with tkinter. so my question is
how does one create a gui program with sockets? at one point you have
to call mainloop() which does not return. then you are not free to do
stuff with the sockets.
what's up with that?
thanks so much for your time!
|
thread by: python |
last post Jul 18 '05 by: Steve Holden
Hi:
I want to write a procedure to automatically upload some files for me, but
I'm getting stuck. Before I write my own gruesome put() function, I
wanted to check if there is an easier way.
Here's what I can do so far:
>>>import ftplib
>>>conn = ftplib.FTP('ftp.example.com')
>>>conn.login(user='userid', passwd='passwd')
|
thread by: Richard Wesley |
last post Jul 18 '05 by: Neil Padgen
I don't know if this is really a Python question of a MySQL question,
but i am hopen that there is enough overlap that someone can help me ;-)
I have a unit test suite for our server that loads a clean database
image for many of the tests. I use
p = os.popen('mysql -u uid -ppassword mydatabase', 'w')
p.write(sql_commands)
to load the...
|
thread by: Peter Scott |
last post Jul 18 '05 by: Alan Kennedy
I have a program that listens on an IRC channel and logs everything to
XML on standard output. The format of the XML is pretty
straightforward, looking like this:
<channel name='#sandbox'>
<message user='PeterScott'>Hello, my bot</message>
<message user='PeterScott'>This is a message</message>
<nickchange>
<oldnick>PeterScott</oldnick>...
|
thread by: John Hunter |
last post Jul 18 '05 by: Eric Brunel
Does gd lib or gdmodule support clipping? I would like to set a clip
rectangle and when I issue drawing commands (like im.polygon) have
only the part of the polygon inside the clip rectangle displayed.
Thanks,
John Hunter
gd-2.0.15
gdmodule-0.42
|
thread by: Mark Hahn |
last post Jul 18 '05 by: vincent wehren
I'm using the MIMEText module as part of sending email with no problem until
I put it through py2exe. Then I get this error:
LookupError: unknown encoding: ascii
.... on this line ...
File "email\Encoders.pyc", line 85, in encode_7or8bit
.... which looks like this ...
|
thread by: Howard Lightstone |
last post Jul 18 '05 by: Mark Hahn
Is there any way to display a photoimage background in a toplevel/frame?
I tried replacing my topmost widget with a canvas but the ripple effects on
placement and other widgets got too high.
Is there some way to specify a transparent background on a frame? Then I
could overlay a (tranparent) canvas window over the photoimage on the basic...
|
| |
thread by: Heiko Köhler |
last post Jul 18 '05 by: Heiko Köhler
This version is beta software. CUTE is a QT and Scintilla based code editor,
scriptable with python. CUTE is completely configured with python scripts.
The python API allows to define new commands, which can be mapped to a
shortcut or added to a menu.
There is a handbook for CUTE, but this is still work in progress. The
CUTE/python API is...
|
thread by: Ron Stephens |
last post Jul 18 '05 by: Ron Stephens
I am most pleased with Python 2.3 on Mac OS X!
A lot of stuff just plain works, "right out of the box", so to speak,
that I had to struggle with a bit in order to install and get working
properly, before. WxPython is notable in that category, and this helps
PythonCard installation and use quite nicely. Thanks to Guido and all
who...
|
thread by: Ron Stephens |
last post Jul 18 '05 by: Ron Stephens
Does anyone know when this is due to be released? I am assuming that
this version will cover Python 2.3, and be the first book to fully do
so.
Ron Stephens
|
thread by: Stian Søiland |
last post Jul 18 '05 by: Stian Søiland
all examples performed with:
Python 2.3+ (#2, Aug 10 2003, 11:09:33)
on linux2
(2, 3, 0, 'final', 1)
This is a recursive import:
|
thread by: Bob Parnes |
last post Jul 18 '05 by: Bob Parnes
Greetings,
I just installed zope, version 2.6.1-10 on a debian distribution, but I
cannot get to second base. When I try to add the tutorial to a folder, I
get an error message stating that an emergency user cannot own an
object. So I clicked onto the help page and found the tutorial there.
But I got the same error when I tried to follow...
|
thread by: Leo |
last post Jul 18 '05 by: Mitch Chapman
hi there
i have just started with mac development and i use applescript at the moment
for iTunes and iPhoto automation.
but i'd like to do it from python. does anybody know weather that's
possible and if there is a add on for that?
thanks, leo
|
thread by: Bryon Rigg |
last post Jul 18 '05 by: Bryon Rigg
As I read the instructions, jython requires that the python.home
system property be set or the location of the jython.jar be in the
java.class.path sstem.property (aka the classpath that was passed to
the JVM).
I want to be able to add jython to web applications such that each web
app has its own registry file. Because the methods of...
|
thread by: Simon Burton |
last post Jul 18 '05 by: David Eppstein
In today's experiment, I was wondering if I could make the comparison
operators (<,<=,>=,>) work on classes (types) according to inheritance.
The idea is, for example, classes lower in the class hierarchy would be
less than (more specialized) than classes they inherit from.
class A(object):
pass
class B(A):
|
| |
thread by: John Hunter |
last post Jul 18 '05 by: John Hunter
I would like to extract the font and family name from a TTF file. I
have been looking at fontTools ttLib, which parses the ttf file and
provides lots of helpful information, but cannot find the name.
>>> from fontTools import ttLib
>>> tt = ttLib.TTFont("cour.ttf")
tt seems like a good place to find it, but I can't.
The data appear to...
|
thread by: John Dean |
last post Jul 18 '05 by: Dave Benjamin
Hi
I have set up httpd.conf according to installation and configuration
instructions in the mod_python documentation. Yet when I enter the following
URL http://localhost/test.py all I get is an Apache view of my htdocs
directory. They if I click on test.py and open file dialog pops up. If I
give the file a cgi extension and enter the...
|
thread by: Tobias Pfeiffer |
last post Jul 18 '05 by: Tobias Pfeiffer
Hi!
I want to write a "client-server-application" (only running on the same
machine) or actually I've already begun with and have problems with the
interprocess communication. The server, when started, opens a FIFO and
opens it with open(infifo, 'r'). Then I check the content of the file
with
while 1:
line = serverIn.readline()
|
thread by: Daniel Joyce |
last post Jul 18 '05 by: Daniel Joyce
When I try and run pycrust, I get...
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/usr/bin/pycrust", line 4, in ?
from wxPython.lib.PyCrust.PyCrustApp import main
File
"/usr/lib/python2.2/site-packages/wxPython/lib/PyCrust/PyCrustApp.py", line
8, in ?
from crust import CrustFrame
|
thread by: Joel Forrest Moxley |
last post Jul 18 '05 by: Joel
Greetings python-list!
The good news is that I've been having a blast with Python since early
Spring. I've had great success in both learning the language from online
/ usegroup resources and implementing it in one of my projects. However,
I can't pretend to be an expert, and I do not have a strong comp sci
background.
This is a...
|
thread by: Mark Nelson |
last post Jul 18 '05 by: Martin v. Löwis
Hi
I'm trying to build Imaging 1.1.4 in Solaris 9, I get passwd the first
step i.e the building of libImging. However when I execute a python
setup.py build I get the following error -
gcc -shared build/temp.solaris-2.9-sun4u-2.2/_imaging.o build/temp.solaris-2.9-s
un4u-2.2/decode.o build/temp.solaris-2.9-sun4u-2.2/encode.o...
|
thread by: franck |
last post Jul 18 '05 by: Steve Holden
HI,
this is my code
params = {}
params = '*****';
params = '***';
params = '**********';
params = '******';
params = '****';
|
thread by: Fred Lionetti |
last post Jul 18 '05 by: Michael Peuser
Hi everyone,
Hopefully a quick question for someone out there--
If I have a file at C:\Python23\myfolder\mymodule.py
why can't I say (from python prompt or anywhere else):
import myfolder.mymodule ????
When I try to do that I get the following error message:
|
| |
thread by: Olivier Lefevre |
last post Jul 18 '05 by: John J. Lee
Python 2.3
>>> def foo():
.... foo.a = 1
....
>>> vars(foo)
{}
>>> foo()
>>> vars(foo)
{'a': 1}
>>>
|
thread by: Jose Vicente Nunez Z |
last post Jul 18 '05 by: Jose Vicente Nunez Z
Greetings,
I wrote a couple of custom dummy extensions in Python (one a pure Python
and the other a C) and i managed to compile and install them without a
problem:
$ make
python2 setup.py build
running build
|