473,698 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wxstyledtextctr l and xml markup


Hello community,

I want to create an editor for a self defined xml markup language. I want to
use wxpython with wxstyledtextctr l 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 wxstyledtextctr l, 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 2146
On Sep 13, 6:23 am, OpenPavilion Team <openpavil...@o penpavilion.org >
wrote:
Hello community,

I want to create an editor for a self defined xml markup language. I want to
use wxpython with wxstyledtextctr l 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 wxstyledtextctr l, 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.u mcn.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
1099
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 much slow. Any idea to resolve this issue?
5
1801
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 focus initially on the editor. This works fine. Odd thing is though, switching back and forwards between applications alternately hides and reappears the caret.
5
3115
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... ? 4) Is there an alternative?
2
2331
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 = wxPython.stc.wxStyledTextCtrl( self, wx.NewId(), style=wxPython.wx.wxNO_FULL_REPAINT_ON_RESIZE)
0
8668
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9152
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8855
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7708
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.