RSS/Atom feed Twitter
Site is read-only, email is disabled

How to get position of main GIMP window?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

How to get position of main GIMP window? sunslick 09 Nov 06:43
2017-11-09 06:43:26 UTC (over 6 years ago)
postings
2

How to get position of main GIMP window?

1. I load a file in GIMP as follows

first_file = os.path.join(PathToProcess, filename) img = pdb.gimp_file_load(first_file,first_file)

2. I try to get the position of the file as follows

wdw = gtk.Window(gtk.WINDOW_TOPLEVEL) xm,ym = wdw.get_position()

xm, ym returns as 0,0.

I have tried different ways to reference the main GIMP window, but it does not seem to work. How should I get the position of the main GIMP window (with my file opened) on the desktop ?