Phlip: |The outer problem: I need to read a tab-delimited file full of XYZ data |into the ImportSpreadsheet filter, and output its beautiful quicky scatter |plot into a Python Tkinter window. Need Tkinter because the user must |rotate this plot around to inspect it, and then close it when they get |tired. | |Here's how I went about it: | | * Open 'dx -prompter', dial up a sample TXT file, and import this in |Spreadsheet format. It looks beautiful. | * Save the current NET to a file name - Kozmik.net | * Take the py-opendx example program 11-supervise_net.py, and replace the |exDXLLoadScript argument "11-supervise_net.net" with Kozmik.net. | |The inner problem: When I run that rig, the Tkinter window appears over |here. But because Kozmik.net got generated from 'dx' displaying a window, |'dx' displays a new window, over there, with the data in it. I want the |data inside the Tkinter window!
I think Pete identified your problem. To load a .net file and have DX display inside a Tkinter-created window with Py-OpenDX, your .net has to use the SuperviseWindow/SuperviseState modules for display, and you need to set the parent and depth parameters of SuperviseWindow to parent DX's window inside of the Tkinter window heirarchy. See the simple 11-supervise_net.net network that 11-supervise_net.py loads. It does this. Note the DXLInput modules labeled "supervisewin_parent" and "supervisewin_depth" that are set from the Python script using DXLSetInteger. Hope this helps. If not, let me know. -- Randall Hopper (mailto:[EMAIL PROTECTED]) Lockheed Martin Operation Support EPA Scientific Visualization Center US EPA MD/24 ERC-1A; RTP, NC 27711
