473,394 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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/wxstyledtextct...html#a12652955
Sent from the Python - python-list mailing list archive at Nabble.com.

Sep 13 '07 #1
4 2118
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/wxstyledtextct...f4435096.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_Pytho...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
Sep 13 '07 #2
I highly recommend the wxPython mailing list. Right now it is down
(see their website),
its'up again.
Sep 13 '07 #3
On Sep 13, 8:27 am, stef <s.mien...@id.umcn.nlwrote:
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

Sep 13 '07 #4
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
Sep 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: J.R. | last post by:
Hi, I want to use the wxStyledTextCtrl to open a huge ascii file, see almost 10MB. After I set the wrap mode, i.e. set to wxSTC_WRAP_WORD, the open and resize of the wxStyledTextCtrl will be...
5
by: Paul Robson | last post by:
I have a wierd thing with a little editor app I'm writing. I'm using wxStyledTextCtrl ; the wrapper for Scintilla. When I create the frame in wxPython, I use self.Editor.SetFocus() to put the...
5
by: David Rasmussen | last post by:
I have several questions about wxStyledTextCtrl: 1) Is it still being maintained? 2) Where are the docs and tutorials? 3) Is it wxStyledTextCtrl, wx.StyledTextCtrl, StyledTextCtrl, or... ? ...
2
by: pierre_py | last post by:
Hi. I use wxPy version 2.4.2 for Python 2.3. Now I wanted to use the wxStyledTextCtrl for viewing (editing) of sql code. I have the following: self.__m_styled_text_ctrl =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.