Retrieving Text From CircleShape

Thanks. The GetText does seem to work as long as I use the corresponding
SetText to the region. I had been using AddText which doesn't seem to work
quite the same way.

···

-----------------------------------------------------------------------
Natalie Doe
Software Engineer
Data Exploration Sciences, New Applications
GlaxoSmithKline
(919) 315-4963

                      "Matthew Thornley"
                      <matthew.thornley@motio
                      neng.com>
                                                     To: wxPython-users@lists.wxwindows.org
                                                                                                                                 
                      17-Nov-2003 11:40 cc:
                      Please respond to Subject: RE: [wxPython-users] Retrieving Text From CircleShape
                      wxPython-users@lists.wx
                      windows.org
                                                                                                                                 
Try wxShapeRegion.GetText().

PS: If you are new to OGL, you'll find that it is under-documented and
under-supported. Your best references are the C++ sources
(wxPythonSrc\contrib\src\ogl) and the Python wrapper
(Python\Lib\site-packages\wxPython\ogl*.py). OGL is usable, but there are
bugs that need to be worked around. OGL is pretty much dead in the water
because it has been replaced with the C++ project wxArt2d (
http://sourceforge.net/projects/wxart2d/), which AFAIK, does not have a
Python wrapper.

             Matthew

-----Original Message-----
From: natalie.l.doe@gsk.com [mailto:natalie.l.doe@gsk.com]
Sent: Friday, November 14, 2003 9:21 AM
To: wxPython-users@lists.wxwindows.org
Subject: [wxPython-users] Retrieving Text From CircleShape

I am trying to get text out of a CircleShape and a PolygonShape. It
appears easy enough to AddText but it isn't to apparent how you might go
about retrieving that text. The AddText sais the text is added to the
shapes default text region. Do I need to somehow get this region to get
the text? When I use GetRegions there is only 1 region in the list and
there dosen't seem to be any information/text inside.

-----------------------------------------------------------------------
Natalie Doe
Software Engineer
Data Exploration Sciences, New Applications
GlaxoSmithKline
(919) 315-4963

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org