It is currently Fri Apr 19, 2024 5:54 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 ]


   Similar Topics   Replies 
No new posts Attachment(s) Cannot Precisely Position Guide Lines in Inches

6

No new posts downloadable GIMP help for 2.10.x? 2.10 crashes, main page has 2.8

1

No new posts Attachment(s) how to get layer offsets from the main layer?

3

No new posts Attachment(s) get a window to open on first click?

4

No new posts Scripts default to New Window

4



* Login  



Powered by phpBB3 © phpBB Group