[wxPython] VTK and wxPython

Hello,

I like to include a VTK, vtkRenderWindow, in a wxPython Frame. The problem is that in windows(2k) it works but in Linux its outside the frame and it crashes. here is my code:( I appreciate any help)

renWin = wxVTKRenderWindow(self, 30, wxPoint(10,10), wxSize(self.vtkWindowHight,self.vtkwindowWidth))
renWinindow=renWin.GetRenderWindow();

Thanks again,

-Sam

I'll need to build VTK on my new Linux box before I can take a look at this.
Does anybody else have it working right now? It's been a long time since I
tried it, since before Python 2.0 I think...

Robin

···

----- Original Message -----
From: Sam Behashtei
To: wxPython
Sent: Friday, February 23, 2001 1:49 PM
Subject: [wxPython] VTK and wxPython

Hello,
I like to include a VTK, vtkRenderWindow, in a wxPython Frame. The problem
is that in windows(2k) it works but in Linux its outside the frame and it
crashes. here is my code:( I appreciate any help)

renWin = wxVTKRenderWindow(self, 30, wxPoint(10,10),
wxSize(self.vtkWindowHight,self.vtkwindowWidth))
renWinindow=renWin.GetRenderWindow();

Thanks again,

-Sam

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

I am using python 1.5, Could this be the problem? BUT I have 1.5 for Win
also!

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.sourceforge.net>
Sent: Friday, February 23, 2001 3:24 PM
Subject: Re: [wxPython] VTK and wxPython

I'll need to build VTK on my new Linux box before I can take a look at

this.

Does anybody else have it working right now? It's been a long time since

I

tried it, since before Python 2.0 I think...

Robin

----- Original Message -----
From: Sam Behashtei
To: wxPython
Sent: Friday, February 23, 2001 1:49 PM
Subject: [wxPython] VTK and wxPython

Hello,
I like to include a VTK, vtkRenderWindow, in a wxPython Frame. The

problem

is that in windows(2k) it works but in Linux its outside the frame and it
crashes. here is my code:( I appreciate any help)

renWin = wxVTKRenderWindow(self, 30, wxPoint(10,10),
wxSize(self.vtkWindowHight,self.vtkwindowWidth))
renWinindow=renWin.GetRenderWindow();

Thanks again,

-Sam

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

I've compiled it against Python2.1a2 a few days ago with out a problem on a
RH 6.2 machine. (man does it take a while) The few Tkinter based examples I
tried worked fine. The wxPython example in the demo opens fine and displays
the cone. It also allows interaction with the cone. It crashes, however,
when the window is resized.

eric

···

-----Original Message-----
From: wxpython-users-admin@lists.sourceforge.net
[mailto:wxpython-users-admin@lists.sourceforge.net]On Behalf Of Robin
Dunn
Sent: Friday, February 23, 2001 3:24 PM
To: wxpython-users@lists.sourceforge.net
Subject: Re: [wxPython] VTK and wxPython

I'll need to build VTK on my new Linux box before I can take a look at this.
Does anybody else have it working right now? It's been a long time since I
tried it, since before Python 2.0 I think...

Robin

----- Original Message -----
From: Sam Behashtei
To: wxPython
Sent: Friday, February 23, 2001 1:49 PM
Subject: [wxPython] VTK and wxPython

Hello,
I like to include a VTK, vtkRenderWindow, in a wxPython Frame. The problem
is that in windows(2k) it works but in Linux its outside the frame and it
crashes. here is my code:( I appreciate any help)

renWin = wxVTKRenderWindow(self, 30, wxPoint(10,10),
wxSize(self.vtkWindowHight,self.vtkwindowWidth))
renWinindow=renWin.GetRenderWindow();

Thanks again,

-Sam

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Actually the example given is running fine on my Mandrake7.2. But the
problem is that I can't
include the vtk window inside a wxPython frame!!! If I have it outside then
no problems, but I rather not.

Sam

···

----- Original Message -----
From: "eric jones" <ej@ee.duke.edu>
To: <wxpython-users@lists.sourceforge.net>
Sent: Saturday, February 24, 2001 2:28 AM
Subject: RE: [wxPython] VTK and wxPython

I've compiled it against Python2.1a2 a few days ago with out a problem on

a

RH 6.2 machine. (man does it take a while) The few Tkinter based examples

I

tried worked fine. The wxPython example in the demo opens fine and

displays

the cone. It also allows interaction with the cone. It crashes, however,
when the window is resized.

eric

-----Original Message-----
From: wxpython-users-admin@lists.sourceforge.net
[mailto:wxpython-users-admin@lists.sourceforge.net]On Behalf Of Robin
Dunn
Sent: Friday, February 23, 2001 3:24 PM
To: wxpython-users@lists.sourceforge.net
Subject: Re: [wxPython] VTK and wxPython

I'll need to build VTK on my new Linux box before I can take a look at

this.

Does anybody else have it working right now? It's been a long time since

I

tried it, since before Python 2.0 I think...

Robin

----- Original Message -----
From: Sam Behashtei
To: wxPython
Sent: Friday, February 23, 2001 1:49 PM
Subject: [wxPython] VTK and wxPython

Hello,
I like to include a VTK, vtkRenderWindow, in a wxPython Frame. The

problem

is that in windows(2k) it works but in Linux its outside the frame and it
crashes. here is my code:( I appreciate any help)

renWin = wxVTKRenderWindow(self, 30, wxPoint(10,10),
wxSize(self.vtkWindowHight,self.vtkwindowWidth))
renWinindow=renWin.GetRenderWindow();

Thanks again,

-Sam

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Actually the example given is running fine on my Mandrake7.2. But the
problem is that I can't
include the vtk window inside a wxPython frame!!! If I have it outside

then

no problems, but I rather not.

Can't or don't want to? If you don't put it in a frame where would you put
it?

Maybe you could send an example of what you are tryin to do and eric can try
it out and give some pointers?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Maybe you could send an example of what you are trying to do and eric can

try

it out and give some pointers?

I am writing a vtkClass for my school project. To send the code I either
have to send the dll's (22.1Mb) or send the C++ and wxPython code, which the
requires Eric to compile it into his vtk: Too much trouble!

Can't or don't want to? If you don't put it in a frame where would you

put

it?

I can have the vtkWindow out side the application in a OpenGL frame by using
the following line

renWin=vtkRenderWindow(); This means that my wxWidgits are on a separate
window. I don't really like that.

OR use the commands I send earlier to embed the vtkWindow in wxPython frame.
this works well for Windows but as for Linux the vtk widow is still out of
the frame and crashes right away. here is the command again, maybe there is
another way to embed a vtk window and I don't know about it:

renWin = wxVTKRenderWindow(self, 30, wxPoint(10,10),
                  wxSize(self.vtkWindowHight,self.vtkwindowWidth))
renWin=self.renWin.GetRenderWindow();

Thanks

-Sam

···

----- Original Message -----
From: "Robin Dunn" <robind@earthling.net>
To: <wxpython-users@lists.sourceforge.net>
Sent: Saturday, February 24, 2001 12:10 PM
Subject: Re: [wxPython] VTK and wxPython

> Actually the example given is running fine on my Mandrake7.2. But the
> problem is that I can't
> include the vtk window inside a wxPython frame!!! If I have it outside
then
> no problems, but I rather not.
>

Can't or don't want to? If you don't put it in a frame where would you

put

it?

Maybe you could send an example of what you are tryin to do and eric can

try

it out and give some pointers?

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

HI All,

I am trying to get wxPython to work with a Cygwin compiled Python
< this is Posix emulation -- not -mno-cygwin or MingW variety Cygwin >

Background
wxWindows 2.2.5 seems to work OK as a dll with Cygwin
At least I can compile and run most of the demos

I am using a fairly recent Python < 2.1a2 >
with a little 'DistUtils coercion' I have gotten wxPython to compile
and install itself.

However when I try to run demo.py
I get the initial wxPython splash screen
"And now for something completely different..."

followed by the
"wxPython: (A Demonstration)" window

but this is as far as I get
Windows then complains about missing resources
"You probably forgot to include wx / msw / wx.rc in your resources"

However I believe I have, at least wxPython / src / wxc.rc
seems to compile OK with this DistUtils generated command

windres -i src/wxc.rc -o build/temp.cygwin_nt-5.0-1.1.8-i686-2.1/wxc.rc.o \
   --include /src/wxwin/include --include /src/wxPython-2.2.5/src \
  --define __WIN32__ --define __WIN95__ --define __GNUWIN32__

and wxc.rc.o is linked into the DLL

gcc -shared -Wl,--enable-auto-image-base -s
  .< snipped .o files >.... \
  build/temp.cygwin_nt-5.0-1.1.8-i686-2.1/wxc.rc.o \
  build/temp.cygwin_nt-5.0-1.1.8-i686-2.1/wxc.def \
  -L/src/wxwin/lib -Lbuild\ilib -L/usr/local/lib/python2.1/config \
  -lwx22_5 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm \
  -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -lwsock32 -ladvapi32 \
  -lole32 -loleaut32 -luuid -lopengl32 -lglu32 -lpng -ljpeg \
  -lzlib -lxpm -ltiff -lstdc++ -lgcc -lpython2.1 \
  -o build/lib.cygwin_nt-5.0-1.1.8-i686-2.1/wxPython/wxc.dll

It seems as if I am almost there.
Any Ideas ??

Norman Vine

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Hi All,

I have gotten the majority of wxPython 2.2.5 to run with
Cygwin 1.1.8 :-))

This required a fair bit of 'coercion' to the distutils
cygcompiler.py module, I used the wxPython
my_distutils.py as a reference, I also had to add an
additional section in setup.py for the cygwin compiler

I will be glad to supply the specifics to anyone interested.

FYI
I overcame the 'resource file not found" problem I mentioned
in my earlier post by linking the wxWindows resource file into
the python executable.

IMO this is not really satisfactory but seems to work.

Cheers

Norman Vine

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users