There is a subtle threading bug in the media code that interferes with
some Tkinter functionality, and that bug manifests itself differently
on each operating system.
We have a fairly easy fix, which we will discuss in lecture this week:
- Download NEW files media.py and picture.py.
- Put those files in your project directory. That way when you import media, your program will find these new files.
Notes:
This fix has only been tested in OS X. If you happen to test this
fix on Windows or Linux, could you please post a note letting us know
whether it worked?
Functions
media.show and
media.update
have changed. They now both open a new window every time you call
them, no matter what. And you can't close them, unfortunately.
Fortunately, we're going to show you how to put images into your Tkinter windows so you won't need to use
media.show any more (except perhaps during your testing). If you're curious, you can take a look at
an example, which we're going to discuss later this week.