Tkinter vs. wxPython?

Jason Harper JasonHarper at pobox.com
Tue May 11 20:17:03 EDT 2004


Mark Hughes wrote:
> The image support is
> terrible (especially since the cropping function from Tk has never been
> implemented in Tkinter, and the maintainers don't seem to give a damn),

Easily fixable from the Python side:

      def subimage(src, l, t, r, b):
          dst = PhotoImage()
          dst.tk.call(dst, 'copy', src, '-from', l, t, r, b, '-to', 0, 0)
          return dst

	Jason Harper



More information about the Python-list mailing list