stipple, hot keys OK in Linux, no effect on Windows python
David Brown
david at no.westcontrol.spam.com
Tue May 6 03:37:53 EDT 2003
"Jeff Epler" <jepler at unpythonic.net> wrote in message
news:mailman.1052190129.18689.python-list at python.org...
> On Mon, May 05, 2003 at 07:36:40PM -0700, Tim Williams wrote:
> > Hi.
> >
> > I'm drawing a couple of ovals on a canvas widget, one with
> > stipple='gray25', the other with no stipple (solid). (Python 2.2, Pmw
> > 1.1) On RH Linux, I get what I expect, a solid color oval and a
> > 'dimmer' oval of the same color. When I try the same script on a
> > Windows version of Python/Pmw, both ovals look the same. I was hoping
> > to not have to draw something over my oval to distinguish them from
> > each other.
>
> I don't know where it's documented, but many of the drawing styles
> (dash patterns) are emasculated on the Windows version of the
> canvas. This may go for stipples too.
>
As far as I understand it (from pure Windows programming in Delphi, amongst
others), the dash patterns for line drawing in the windows GDI only has an
effect if the line width is 1 pixel. If the line width is more than one
pixel, then you always get a solid line. Different styles are possible for
the brush, however, so in normal windows programming it is possible to get
stippling effect. But I don't know how well it is supported in Tkinter.
More information about the Python-list
mailing list