I'll answer my own question - in file pd.tk, at the end of the "main window set up" section, after lines
wm title . "Pd" . configure -menu .mbar -width 200 -height 150
add the following line to control main window position at startup:
wm geometry . +x+y
where (x,y) is the offset in pixels from the top left corner of the screen. So "wm geometry . +0+0" puts the pd main window in the top left corner of the leftmost screen.
The relevant Tk manual page is: http://tmml.sourceforge.net/doc/tk/wm.html
Thanks for scoping this out. I added this to Pd-extended so that
it's easy to change. Ideally this would be a preference, but there
needs to be some kind of preference framework to handle things like
this.
.hc
On Jul 23, 2007, at 12:11 PM, Bjoern Hartmann wrote:
I'll answer my own question - in file pd.tk, at the end of the "main window set up" section,
after lineswm title . "Pd" . configure -menu .mbar -width 200 -height 150
add the following line to control main window position at startup:
wm geometry . +x+y
where (x,y) is the offset in pixels from the top left corner of the screen. So "wm geometry . +0+0" puts the pd main window in the top left corner of the leftmost screen.
The relevant Tk manual page is: http://tmml.sourceforge.net/doc/tk/wm.html
-- Bjoern Hartmann Human Computer Interaction Group Stanford University
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Using ReBirth is like trying to play an 808 with a long stick. - David Zicarelli