[Fwd: Re: [vtkusers] MacOS X Carbon Window Messaging Problem]

Karl Garsha garsha at itg.uiuc.edu
Fri Aug 29 14:42:24 EDT 2003


-------- Original Message --------
Subject: 	Re: [vtkusers] MacOS X Carbon Window Messaging Problem
Date: 	Fri, 29 Aug 2003 13:03:36 -0500
From: 	Karl Garsha <garsha at itg.uiuc.edu>
To: 	Bradley Lowekamp <lowekab at mail.nlm.nih.gov>
References: 	<5F113CD4-DA2F-11D7-9274-000A9578B08C at mail.nlm.nih.gov>



Greetings Brad,
Getting native windowing support to work with Tcl/Tk, or Python/Tkinter, 
or Python wxWindows requires that the script is started by drag/dropping 
on a GUI version of the interpreter, or (in the case of Python2.3) 
starting from the command line while explicitly specifiying the GUI 
version of the interpreter (pythonw script which points to python.app).  
I don't really use Tcl, but there should be a "Wish Shell" icon in the 
utilities directory in Applications.  Try dropping a Tcl/Tk VTK example 
on this icon--a GUI interpreter will open and you should be able to give 
focus to Tk windows.  This is some wierd thing with Quartz--you can't 
seem to start native windowing applications from a command line 
interpreter yet.
   If you build Tcl/Tk and/or Python/Tkinter for X11 things will work 
normally in the X11 environment.  If you want to start a Tcl/Tk Carbon 
application from a terminal window, you may be able to do so with a 
command like "wish8.4 vtkapp" (rather than "tclsh8.4 vtkapp") if your 
display environment variable is configured correctly.  
-Karl

Bradley Lowekamp wrote:

> Hello,
>     I think that this is more of a general OSX problem and I don't 
> understand somethings about the bundling .app framework stuff. So I 
> have compiled a recent CVS version of VTK on OSX with Carbon and a 
> recent version of Tcl/Tk. And it compiles ok. The problem is that 
> whether I run a Tcl or a C++ VTK windowed application I don't appear 
> to be getting any messages for the OS; the app just sits there not 
> doing anything, not getting focus...dead like. I put one of the 
> applications in a hacked together *.app bundle and it seemed to work 
> ok then. It seems like I should be able to get executables  to work 
> with out a bundle; especially Tcl scripts. (hrmm... perhaps with an 
> open command? I should try that.) Does anyone know what is required to 
> get a native OS X windowed app running good? Get a good URL with the 
> info?
>          Also is there a way to make these app bundles with CMake?
>
> >Thanks
> Brad
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, IL 61801
Office: B650J
Phone: 217.244.6292
Fax: 217.244.6219
Mobile: 217.390.1874
www.itg.uiuc.edu




-- 
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, IL 61801
Office: B650J
Phone: 217.244.6292
Fax: 217.244.6219
Mobile: 217.390.1874
www.itg.uiuc.edu





More information about the vtkusers mailing list