When using Pmw.AboutDialog and Pmw.Dialog widgets, the dialogs when first appearing on the screen are completely greyed out, have no content packed into them, and have the wrong size allocation on screen.
When the titlebar is clicked (the bar that the window manager draws) the window immediately resizes due to the packed content and shows all of the content. I can provide a 'before' and an 'after' screenshot of what I'm talking about.
Here's sample code that will cause the problem:
from Tkinter import *
import Pmw
class Thingy(Tk):
def __init__(self, *args):
Tk.__init__(self)
self.b = Button(self, text='Show Dialog', command=self.do_dialog)
self.b.pack()
def do_dialog(self, *args):
Pmw.aboutversion('1.0')
Pmw.aboutcopyright('Copyright 2000, 2001')
Pmw.aboutcontact('This is the foo program')
dialog = Pmw.AboutDialog(self, applicationname='Foo')
dialog.show()
x = Thingy()
x.mainloop()
Details on my system:
Debian GNU/Linux (Woody) python 1.5.2
Python 1.5.2 (#0, Dec 27 2000, 14:53:01) [GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
also tested on Python 2.0 (#1, Dec 17 2000, 18:36:14)
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2 (same result)
Pmw version 0.8.5 (freshly downloaded today hoping that it would fix this as I had the same problem with 0.8.4)
Tkinter: python-tk 1.5.2-11 (in Debian Woody archives for python 1.5.2)
Logged In: YES
user_id=71522
What window manager are you using?
Your test program works as expected with twm under Debian
and no similar reports have been logged before, so I suspect
it is a bad interaction with your window manager.
Greg
This item is too old and I couldn't reproduce it - if anybody ever encounters this again, please open a new tracker item.