Question about X window control
Jay Freeman
jayFreem at direcpc.com
Wed Feb 23 19:36:36 EST 2000
OK, I found my own answer :). If anyone is interested, it works like this:
xanim has a command line option +Wid where id is a x window id number to use for display of the
animation.. So I did this:
import Tkinter
root = Tk()
root.overrideredirect(1) # prevents the wm from putting a frame or title bar around the window
*giving me full screen video!*
root.geometry(640x480+0+0) # sizes and locates it
wid = str(root.winfo_id())
then built my command string using wid.
Adios,
Jay
Jay Freeman wrote:
> Hi again,
>
> cgw at alum.mit.edu wrote:
>
> >
> > Well, this question doesn't have a lot to do with Python but I'll answer it
> > anyway.
> >
> > xanim has a -S option to control scaling and a -W option to control
> > window placement. If you type "xanim --help" you'll see it all spelled
> > out in great detail.
>
> Thanks for replying, but neither of these is any help. Scaling is irrelevant, the anim is
> already the size I want it to be. And the +Wxnum and +Wynum parameters position the anim within
> the window, not the window within the desktop.
>
> What I was after on the Pyhton side of things is how to tell that window to maximize itself. I
> can get the pid of the xanim process, but where do I go from there (if anywhere)?
>
> Jay
--
*------------------------------------------*
* Jay Freeman - WT9S ARRL *
* G-QRP 10319 QRP-ARCI 9981 ARS 562 *
* SASS #18700 NRA Life *
*------------------------------------------*
More information about the Python-list
mailing list