I've subclassed wxApp, overridden OnInit and added some methods of my own. I
would like to use wxGetApp() to get my app and call these methods, however
I'm running into what looks like an OOR problem.
Calling wxGetApp().requestIdleTime() causes the following exception.
AttributeError: wxPyAppPtr instance has no attribute 'requestIdleTime'
I've had a look at the wiki and the OOR section of the demo but I can't work
out how to get from a wxPyAppPtr to MyApp.
I am writing an application where I plan to have textctrl where people could
write som text. This would then be converted to html and put into a table.
I dont need a textctrl that can edit all sorts of html but would like it
to be possible to write in bold and different colours. Even maybe
underlining and sections.
I was hoping that there would be a textctrl where that does this
but couldn't find any in the documentation.
I've seen the scintilla but think that it would be overkill and I am
going to have a form with alot of textctrls and I am not sure that
it would be very effective.
What I actually think I would like to have would be a grid but
that didnt look like a grid. That is that I would like to place
the cells of the grid in not a gridsctructure.
I've subclassed wxApp, overridden OnInit and added some methods of my own. I
would like to use wxGetApp() to get my app and call these methods, however
I'm running into what looks like an OOR problem.
Which version? I just added OOR support to wxApp recently.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I am writing an application where I plan to have textctrl where people could write som text. This would then be converted to html and put into a table.
I dont need a textctrl that can edit all sorts of html but would like it
to be possible to write in bold and different colours. Even maybe
underlining and sections.
wxTextCtrl can do simple formatting (on Windows you need the wxTE_RICH style.) See the demo.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Thanks for that, dont know how I missed that in demo.
But now I have the text with all the properties is there
some function that can read the string from the textctrl
and convert it to html or other formats like pdf, ps etc?
I dont think it is hard to do myself, I guess just go through
the text and insert tags when the text changes. But
tought this was something that must have been done
a couple of times.
/Toni
···
Toni Brkic wrote:
> Hi,
>
> I am writing an application where I plan to have textctrl where people
> could write som text. This would then be converted to html and put into a
> table.
>
> I dont need a textctrl that can edit all sorts of html but would like it
> to be possible to write in bold and different colours. Even maybe
> underlining and sections.
wxTextCtrl can do simple formatting (on Windows you need the wxTE_RICH
style.) See the demo.
--
Toni Brkic
toni.brkic@switchcore.com
Switchcore, Lund, Sweden
Thanks for that, dont know how I missed that in demo.
But now I have the text with all the properties is there some function that can read the string from the textctrl
and convert it to html or other formats like pdf, ps etc?
I dont think it is hard to do myself, I guess just go through
the text and insert tags when the text changes. But
tought this was something that must have been done
a couple of times.
You'll have to do it yourself.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!