It is currently Wed Aug 26, 2026 1:16 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to get position of main GIMP window
PostPosted: Thu Nov 09, 2017 1:41 am  (#1) 
Offline
New Member

Joined: Sep 02, 2017
Posts: 2
I am trying to position a dialogbox relative to the main GIMP window (using Python-fu)

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 deskto ?


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group