It is currently Thu Nov 23, 2017 2:42 am


Latest GIMP Scripts & Plug-ins

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) G'MIC main program window - possible improvements?

0

No new posts Attachment(s) pattern position GIMP 2.8

6

No new posts Attachment(s) How do YOU arrange or position YOUR Gimp Windows?

44

No new posts Attachment(s) Magic Mix (Center Position) Script for GIMP

28

No new posts 'Main Interface'

2



* Login  



Powered by phpBB3 © phpBB Group