> I want to control gnuplot with a python program.
Hi Anton,
here is a little snippet using os.popen:
import os
gp = os.popen('gnuplot -persist', 'w')
print >> gp, "set yrange [-300:300]"
for n in range(300):
print >> gp, "plot %i*cos(x)+%i*log(x+10)" % (n,150-n)
Rega
Am Sat, 14 Jan 2006 13:24:01 -0800 schrieb Dustan:
> How do I limit what the user can enter in an Entry Widget? I know I can
> set it to display '*' to hide a password, but what I want to do is
> limit the contents to numeric characters. What is the easiest way of
> doing this?
Hi!
Fredrik Lundh
Hi!
> Are there any good active python forums online? Especially any forum that
> has an uber-noob section!
-
Here are some:
http://python-forum.org/py/
http://forums.devshed.com/ (not really a Python-forum, but
has a good Python sec
Hi!
I tried your script and got the following error:
Traceback (most recent call last):
File "pie_chart.py", line 302, in OnPaint
self.OnDraw()
File "pie_chart.py", line 336, in OnDraw
segment.Draw(self.angle, self.rot, self.explode)
File "pie_chart.py", line 46, in Draw
Hi!
Dict = {'rt': 'repeated', 'sr':'repeated', 'gf':'not repeated'}
NewDic = {}
for k,v in Dict.items():
NewDic.setdefault(v, []).append(k)
Regards, mawe
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you press a key, a key-event is passed to the function, here to
self.quit. This is the misterious second argument, which can be
useful if you e.g. want to check which key was pressed. Here is
a snippet to show how you can do it:
from Tkinter import *
def quit_program(event):
print
Hi!
> I'm going to say a suggestion, why don't you create a forum like the one
> of Ruby (http://www.rubyforums.com/)? for the novices this is a great
> help, better than a mail list
>
> It's also worth noting that rubyforums.com has nearly no posts (six
> total) because it takes very just a shor
Hi!
> in c and c++ there is a useful way to refresh an output line in printf
> and cout using \r meta command. So for example in the wget application
> the progress of the download is updated on the same output line of the
> screen. From an intital investigation python seems to lack this. Is
> thi
> Does Tkinter provide a combobox or do I have to find some way of making
> a listbox do the job ?
Hi!
In Tkinter this is called "OptionMenu".
If you don't like it, PMW (http://pmw.sourceforge.net/) has a
*real* Combobox :)
Regards, mawe
--
http://mail.python.org/mailman/listinfo/python-list