Post any questions, ideas, or topics related to Jython and Python scripting.
joleenf
Posts: 1123 Joined: Mon Jan 19, 2009 7:16 pm
Post
by joleenf » Wed Nov 13, 2013 3:00 pm
Why is it that when I use buildWindow and try to access the navigated display, nothing is returned...
Code: Select all
panel = buildWindow() nd1 = panel[0].getNavigatedDisplay()
but when I use firstDisplay() or activeDisplay(), I get the navigated display (class ucar.unidata.view.geoloc.MapProjectionDisplayJ3D')
Code: Select all
nd2=activeDisplay().getNavigatedDisplay() nd3=firstDisplay().getNavigatedDisplay()
I thought in this case, activeDisplay(), firstDisplay() and panel[0] were all main display view managers.
Joleen
Jon
Posts: 192 Joined: Fri Jan 09, 2009 8:44 pm
Location: Madison, WI
Post
by Jon » Thu Nov 14, 2013 9:36 pm
Hi Joleen,
I'm having difficulties replicating this behavior…could you try running the following and replying with the output?
Code: Select all
print panel for p in panel: print p print see(p) print print see(p.getJavaInstance(), pattern='*get*') print '-'*79
joleenf
Posts: 1123 Joined: Mon Jan 19, 2009 7:16 pm
Post
by joleenf » Fri Nov 15, 2013 6:43 pm
Hi Jon,
I just updated to the latest nightly and it is working. I am having problems finding an old installer to test out on the previous nightly. I am guessing that it is similar to this problem that was noted in the previous nightly?
viewtopic.php?f=24&t=1361 Joleen