I needed to startup a MegaToplevel window on a second
and third screen (:0.1 and :0.2)
In Tkinter you would do something like this:
import Tkinter
Tkinter.Toplevel(screen = ":0.1")
Tkinter.Toplevel(screen = ":0.2")
I couldn't find fiind a way to do it in Pmw, so I had
to patch the PmwBase module a little bit. I haven't put
much though into it either because I needed some demo
out of the the door. However, it seems to work and it
shouldn't break any other code.
Hans.
Logged In: YES
user_id=168551
264c264
< def __init__(self, parent = None, hullClass = None):
---
> def __init__(self, parent = None, hullClass = None,
screen = None):
322,324c322,329
< self._hull = self.createcomponent('hull',
< (), None,
< hullClass, (parent,))
---
> if screen is None:
> self._hull = self.createcomponent('hull',
> (), None,
> hullClass, (parent,))
> else:
> self._hull = self.createcomponent('hull',
> (), None,
> hullClass, (parent,), screen =
screen)
928c933
< def __init__(self, parent = None, **kw):
---
> def __init__(self, parent = None, screen = None,
**kw):
940c945
< MegaArchetype.__init__(self, parent,
Tkinter.Toplevel)
---
> MegaArchetype.__init__(self, parent,
Tkinter.Toplevel, screen)