tkinter window focus
I've read some posts about getting the tkinter library working within the vizard gui and have some further questions.
1 - Can a tkinter dialog be displayed in front of a vizard window? I haven't had any luck with this in either window or fullscreen mode. 2 - Until a tkinter window is closed the vizard thread events are blocked. I don't really see any way around that. Key press events (and i assume any other vizard events) actually build up and all trigger at the time the tkinter dialog is closed. I know there are some vizard dialog alternatives but at this point I would really like to get tkinter running. Any suggestions would be welcomed. |
I'm pretty sure Tkinter has a call to bring a window to the foreground. However, to solve the issues you are experiencing the dialog window needs to be a child of the vizard window. The problem is that there is no way to specify an existing non-tk window as the parent of a tk dialog. I'm not very familiar with Tkinter, so I don't know of any workaround.
Using raw win32 calls I have been able to display a modal dialog over a vizard window, so I know this is technically possible. |
Quote:
Thank you. |
Here is a sample script that shows how to display modal file/color dialogs over the Vizard window:
Code:
import viz |
Thanks, that worked like a charm. :D
|
All times are GMT -7. The time now is 07:26 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC