Re: Connecting to gnuplot with Popen?

2006-03-30 Thread Markus Weihs
> 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

Re: Limitting the Contents of an Entry Widget in Tkinter

2006-01-14 Thread Markus Weihs
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

Re: Any good Python forums?

2005-12-15 Thread Markus Weihs
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

Re: Creating Pie Chart from Python

2005-09-16 Thread Markus Weihs
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

Re: Tricky Dictionary Question from newbie

2005-07-11 Thread Markus Weihs
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

Re: bind in Tkinter

2005-06-10 Thread Markus Weihs
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

Re: Python forum

2005-05-17 Thread Markus Weihs
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

Re: \r functionality

2005-05-17 Thread Markus Weihs
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

Re: Does Tk provide ComboBox ?

2005-04-10 Thread Markus Weihs
> 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