|
I now have the file open screen working on Windows, Mac, and Liinux. In the screenshot Mac 10.5 is on the left and Ubuntu Linux is on the right. To develop, I actually run my MacBook via VNC from my PC rather than physically at the MacBook. This allows me to use a single keyboard and mouse. Via a hardware hack, I can trick the MacBook into thinking there is a second monitor attached and thus the screen area via VNC is greater than present physically. Thus for development, I gain a larger screen size without a second monitor. The gain in screen size is seen in that each "monitor" has a different screen background. The hardware hack is that I use a 3 75 ohm resistors to connect red+ to red-, green+ to green-, and blue+ to blue-. The MacBook is running Leopard OSX 10.5 which comes with Python 2.5 installed. The threading works differently but I was able to work around that. The source files you see here are actuallyresiding on my PC so there is no possiblity of forking the source. The Linux version should have been easy to get running after having the Mac code working. I am running it under Vmware emulator so that it too appears on my Windows desktop. I struggled for a half day trying to get it to share my PC files, same as the Mac. However, Ubuntu seems to treat Samba as not part of the file system and I could not mount my Windows file system. I ended up having to copy my files over to Ubuntu rather than mount them. Oh well. A more serious problem developed in that threading did not operate properly. On the Mac, my backgroud once every second thread could not be launched independently. I solved that by simply converting the main initialization thread (which I was going to exit anyway) to the every second processing. On Ubuntu, I ran into this again. Additionally, my http server thread simply was not starting. I remembered that I had a version of Python which I compiled myself. That version of Python threaded properly and is what you see in the screenshot. If I distribute a Linux version of TTK, I will also be distributing a pre-compiled version of Python to go with it.
Trackback(0)
|