Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

wxstyledtextctrl and xml markup

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


openpavilion at openpavilion

Sep 13, 2007, 4:23 AM

Post #1 of 5 (82 views)
Permalink
wxstyledtextctrl and xml markup

Hello community,

I want to create an editor for a self defined xml markup language. I want to
use wxpython with wxstyledtextctrl and I have looked around at yellowbrain
site, but there are no examples. I also watched the styledtextctrl examples
with wxpython 2.8.4.

What I am looking for is an example of how to do the autocompletion part for
the styledtextctrl based on my self defined XML language.

example:
<profile>
<connection></connection>
<company>
<person></person>
</company>
[...]
</profile>


Since I don't know styledtextctrl, I fear that I am about to write a complex
handler for the autocompletion part, whereas there could be some easy to use
features built into styledtextctrl. My problem is that I don't want to
externalize the grammar of the XML instead of coding it inside the
autocompletion handler.

Are there any examples for wxstyledtextctrl, xml and autocompletion ?

Regards
Pavilion
--
View this message in context: http://www.nabble.com/wxstyledtextctrl-and-xml-markup-tf4435096.html#a12652955
Sent from the Python - python-list mailing list archive at Nabble.com.

--
http://mail.python.org/mailman/listinfo/python-list


kyosohma at gmail

Sep 13, 2007, 6:26 AM

Post #2 of 5 (75 views)
Permalink
Re: wxstyledtextctrl and xml markup [In reply to]

On Sep 13, 6:23 am, OpenPavilion Team <openpavil...@openpavilion.org>
wrote:
> Hello community,
>
> I want to create an editor for a self defined xml markup language. I want to
> use wxpython with wxstyledtextctrl and I have looked around at yellowbrain
> site, but there are no examples. I also watched the styledtextctrl examples
> with wxpython 2.8.4.
>
> What I am looking for is an example of how to do the autocompletion part for
> the styledtextctrl based on my self defined XML language.
>
> example:
> <profile>
> <connection></connection>
> <company>
> <person></person>
> </company>
> [...]
> </profile>
>
> Since I don't know styledtextctrl, I fear that I am about to write a complex
> handler for the autocompletion part, whereas there could be some easy to use
> features built into styledtextctrl. My problem is that I don't want to
> externalize the grammar of the XML instead of coding it inside the
> autocompletion handler.
>
> Are there any examples for wxstyledtextctrl, xml and autocompletion ?
>
> Regards
> Pavilion
> --
> View this message in context:http://www.nabble.com/wxstyledtextctrl-and-xml-markup-tf4435096.html#...
> Sent from the Python - python-list mailing list archive at Nabble.com.

The demo for the StyledTextCtrl_2 mentions something about
autocomplete in the code. Not sure what it's talking about though. The
docs for it seem to link to Scintilla, so reading up on Scintilla's
usage would probably be valuable.

The wiki has one recipe on it for this control:
http://wiki.wxpython.org/Using_Python_Regular_Expressions_with_StyledTextCtrl

I highly recommend the wxPython mailing list. Right now it is down
(see their website), but when it's back up (check their website for
news), that's where I'd post this question if no one else here
answers.

Mike


--
http://mail.python.org/mailman/listinfo/python-list


s.mientki at id

Sep 13, 2007, 6:27 AM

Post #3 of 5 (70 views)
Permalink
Re: wxstyledtextctrl and xml markup [In reply to]

> I highly recommend the wxPython mailing list. Right now it is down
> (see their website),
its'up again.
--
http://mail.python.org/mailman/listinfo/python-list


kyosohma at gmail

Sep 13, 2007, 6:30 AM

Post #4 of 5 (70 views)
Permalink
Re: wxstyledtextctrl and xml markup [In reply to]

On Sep 13, 8:27 am, stef <s.mien...@id.umcn.nl> wrote:
> > I highly recommend the wxPython mailing list. Right now it is down
> > (see their website),
>
> its'up again.

That's not what the website says, but I'll take your word for it.

Mike

--
http://mail.python.org/mailman/listinfo/python-list


limodou at gmail

Sep 13, 2007, 6:35 AM

Post #5 of 5 (70 views)
Permalink
Re: wxstyledtextctrl and xml markup [In reply to]

> I highly recommend the wxPython mailing list. Right now it is down
> (see their website), but when it's back up (check their website for
> news), that's where I'd post this question if no one else here
> answers.
>
wxPython mail list already comes back!

--
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
My Blog: http://www.donews.net/limodou
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.