| |
thread by: Kevin |
last post Jul 18 '05 by: Kevin
I've done a lot of searching to try to find a way to print PIL images to a
normal (i.e. non-PostScript) printer through Python on a Windows system...
and have found squat!
The only sample I found used a hokey hook through PythonWin via a
shellExecute command.
Does ANYONE have Python code to print PIL images?
Thanks!
|
thread by: Gordon Scott |
last post Jul 18 '05 by: Gordon Scott
Hi All,
I've got a problem I'm seeing when trying to use the struct module to send
data to a different machine.
Actually I'm making a condensed file that gets transferred to and read on a
BREW enabled cell-phone,
essentially I'm trying to format content as if it were being streamed over a
socket.
So I am trying to write a string by...
|
thread by: vald |
last post Jul 18 '05 by: Stephen Horne
I wonder if there is any difference in using
if/else and try/except when checking some
return values in functions. For example:
def getValue(self):
try:
return self.values
except KeyError:
return None
|
thread by: tertius |
last post Jul 18 '05 by: tertius
Is there a better way to append certain chars in a string with a
backslash that the example below?
chr = "#$%^&_{}" # special chars to look out for
str = "123 45^ & 00 0_" # string to convert
n = "" # init new string
for i in str:
if i in chr: # if special character in str
n+='\\' # append...
|
thread by: dbdweeb |
last post Jul 18 '05 by: dbdweeb
I've been using RRDtool/Python/Apache with great success on Linux but
now I need to implement on Windoze2K and I don't have a Windoze C
compiler. Is there a RRDtool binary and Python module for it which I
can just plug in?
TIA
|
thread by: Jakle |
last post Jul 18 '05 by: Jakle
Hi all. I'm learning Python, and get stuck once in a while. I've come up
with an idea. I'd like to start an online Python Study Group with others
trying to learn Python as well. I emailed my ideas to someone else in the
same boat, so I'm just going to past that here.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I'm realy...
|
thread by: Fernando Armenta |
last post Jul 18 '05 by: Bengt Richter
Hello,
I am trying to do a print a message statment with a Large fonts/Characters 46-56. How can you do that in python. Also, if I want to flash on/off the message there is a way to do it?
Thanks..everyone on this list rocks helping those new comers to Python...
-F
|
| |
thread by: Henrik Berg Nielsen |
last post Jul 18 '05 by: Bengt Richter
Hi group!
I need to extract some text (well numbers actually) from a bunch of
similarly looking .png images. After extraction the numbers will be fed to a
Python script for further processing. Any good ideas on how to go about with
this? I have no idea whatsoever about how to extract the numbers out of the
images...
Thanks in advance,
|
thread by: Edward K. Ream |
last post Jul 18 '05 by: Erik Max Francis
The docs for 2.2 and 2.3 contain a "What's new" section.
Are there any such sections for 2.0 and 2.1? If so, where are they?
Thanks.
Edward
--------------------------------------------------------------------
Edward K. Ream email: edreamleo@charter.net
Leo: Literate Editor with Outlines
|
thread by: Roger Erens |
last post Jul 18 '05 by: Richard Sharp
Dear list,
I'm trying to install python2.3.1 on an SCO-box.
After running ./configure --prefix=/usrdir/rogere
the output of make shows (among others:)
running build
running build_ext
building 'struct' extension
creating build
|
thread by: Indigo Moon Man |
last post Jul 18 '05 by: Indigo Moon Man
When I am typing in code in IDLE, these little context sensitive helps keep
popping up right next to the mouse cursor. Is there any way to turn this
feature off? Thanks!
--
Audio Bible Online:
http://www.audio-bible.com/
|
thread by: Hank Kingwood |
last post Jul 18 '05 by: Peter Abel
This is probably an easy question, but I can't find a function (maybe my
syntax is off...) to search for in a string. If someone would
help out, I'd appreciate it!
Also, how would you recommend searching for the following in the same
string:
-
|
thread by: Brad Clements |
last post Jul 18 '05 by: Brad Clements
Now that Thomas is back from vacation ;-)
I cannot get the example service to work using Python 2.3 and the latest
released py2exe (or the cvs version) on Win2k SP3. I can run the sample
service .py file ok, but once it's inside a py2exe generated exe.. no
working. The error in the event log is:
The description for Event ID ( 240 ) in...
|
thread by: Pete Jereb |
last post Jul 18 '05 by: Nick Vargish
I am really stuck here. I would love to use an IDE to debug my
programs, but they are all set to accept input from stdin, ie
python rdip.py < scriptfile.txt
I can't figure out how to do this in PythonWin, IDLE, or Komodo.
Help! I've been poring through manuals and google for hours trying to
figure this out.
|
thread by: Klaus Alexander Seistrup |
last post Jul 18 '05 by: Martin v. Löwis
Hi,
After upgrading my Python interpreter to 2.3.1 I constantly get
warnings like this:
DeprecationWarning: Non-ASCII character '\xe6' in file
mumble.py on line 2, but no encoding declared;
see http://www.python.org/peps/pep-0263.html for details
And while I understand the problem, I cannot fathom why Python
|
| |
thread by: mic |
last post Jul 18 '05 by: John J. Lee
I've spent last hour trying to debug my code, when I found out that instead
of executing object's method I accidentaly overridden it with variable (see
below example). My stupid! But as the system becomes more complex, I begun
to wonder how to avoid such situations in the future. Does anybody have some
experiences about that?
Simple...
|
thread by: Lukas Schnieper |
last post Jul 18 '05 by: Mox
Hi all
I tried to install the mod_python (www.modpython.org) for Apache Webserver.
By configure with
../configure --with-apxs /usr/sbin/apxs2-prefork
i get this error:
configure: error: yes not found or not executable
SuSE Linux 8.2
|
thread by: Andreas Neudecker |
last post Jul 18 '05 by: Peter Hansen
Hi.
I have a "style" question: Sometimes, modules will only be used in a
particular, optional, part of a program (function, class), that will not
always be used when the application is run. So I think it is better to
import them only there, not on the top of the file (together with the
other imports). Is that okay, or are there good reasons...
|
thread by: Todd Johnson |
last post Jul 18 '05 by: Rudy Schockaert
I am creating a dialog in wxPython for log in
purposes. Basically when the user clicks the ok
button, the dialog box saves the user name and
password as class attributes. Then as long as the
dialog exists calling MyDialog.GetUserName() and
MyDialog.GetPassword() returns them. This seems
insecure to me. Is there a better way to go about this...
|
thread by: Fred L. Drake |
last post Jul 18 '05 by: Fred L. Drake
The maintenance version of the documentation has been updated:
http://www.python.org/dev/doc/maint23/
Final documentation for Python 2.3.2.
|
thread by: Fraser Gordon |
last post Jul 18 '05 by: John Roth
Hello,
Hopefully someone can help me out with this issue...
I have a python script that needs to run a shell command and be able
to react to output from that command as it occurs (as opposed to
waiting for the whole command to complete and then parsing the
output). Is this possible with Python?
I created a test script that prints a...
|
thread by: Ollie |
last post Jul 18 '05 by: Ollie
I am trying to figure out how a complex program written in python
works. I am new to python so looking at the source code directly is
not helping me much. As such, I am running the program under IDLE so
I can step through the code.
The program runs fine when it is run by itself. However, when I try
to run the program in IDLE, I run into...
|
thread by: Steve Williams |
last post Jul 18 '05 by: Steve Williams
.. . .
Most people I know who use Java only do so because they're forced to by
the company they work for. They never say they "enjoy" the language, as
compared to those associates who, for example, use Python and say that
they'd rather code in Python than be given their choice of supermodel
sex slave.
.. . .
|
| |
thread by: Invalid User |
last post Jul 18 '05 by: Stephen Horne
While trying to print a none empty list, I accidentaly put an "else"
statement with a "for" instead of "if". Here is what I had:
if ( len(mylist)> 0) :
for x,y in mylist:
print x,y
else:
print "Empty list"
which was supposed to be:
|
thread by: pysim |
last post Jul 18 '05 by: Brian Kelley
Hi, I have a couple of general requests for pointers to python
examples and design advice.
I'm looking for examples of MVC-based GUI controls done in python
(model-view-controller).
Also, examples where something like a simulation model running in its
own thread sends fast updates to a GUI in near real-time. The only
examples I've seen,...
|