André a écrit :
Would anyone have a quick and dirty code sample to create an svg
output of a sample math equation using matplotlib?
André
Hi André,
maybe that's not what you want be there's something like this here (a
converter from DVI to SVG in pure Python), look at the samples at the
Tk/Tkinter apparently considers the position 1.13 to be after the last
word in the text. You get the same problem if you set the insertion
point just after the word 'two' for example: text.index('insert')
returns 1.7 and text.index('insert wordstart') returns 1.7 too...
Exactly.
My solution
Hi,
In a tkinter TextWidget I would like to retrieve the last typed word.
I've tried this with the 'wordstart' Expression [From the effbot site,
wordstart and wordend moves the index to the beginning (end) of the
current word. Words are sequences of letters, digits, and underline, or single
You can do it with regexps too :
--
import re
to_watch = re.compile(r(?Pnumber\d+)[/](?Pletter[A-Z]+))
final_list = to_watch.findall(12560/ABC,12567/BC,123,567,890/JK)
for number,word in final_list :
print number:%s -- word:
David Boddie a écrit :
On Sunday 20 July 2008 09:52, John Ladasky wrote:
Is there a way to interface Lisp to Python, so that I can do all the
interface programming in the language I already know best -- and just
do the genetic parts in Lisp? I haven't seen exception handling in
Lisp, a
Alex Bryan a écrit :
I had a guy on this mailing list tell me that pyQT is much better than
Tkinter, and after looking into it a bit I think he is right. However, I
can't find much on it. I want to know if there are any good books or
online tutorials that would be helpful. I doubt there is