2008/6/5 Michael O'Donnell <[EMAIL PROTECTED]>: > Hi all, > > I have code to stipple a rectange created in a canvas. The code > works on Windows, but under Mac (using Python 2.5.2), no stippling > occurs: > > from Tkinter import * > > tk = Tk() > ac = Canvas(tk, bg="red") > ac.pack(side=TOP, expand=YES,fill=BOTH) > ac.create_rectangle(10, 10, 200, 200, fill="blue", stipple="gray12") > tk.mainloop() > > > Does anyone have any idea if this is a known issue, and if so, are there > are ways around the problem?
I don't have a Mac to test it, but I would suggest converting it to Tcl code and then try it again. If it works, then it is a problem in Tkinter (which doesn't seems to be), otherwise it is a problem in Tcl/Tk. Equivalent Tcl code: package require Tk canvas .ac -bg red pack .ac -side top -expand yes -fill both .ac create rectangle 10 10 200 200 -fill blue -stipple gray12 > > Mick O'Donnell > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss@python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > -- -- Guilherme H. Polo Goncalves _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss