Simple HTML WYSIWYG editor

I am looking for a simple HTML editor in wxPython that will produce
relatively clean HTML for users used to working in word processors.

After spending some time trawling archives and search engines, the last
real reference that I came up with was using wxMozilla around 2005.

Is this really something that nobody has done?

I realise that this is not really a trivial thing to do, but I am
willing to at least start a project to get this done.

Anyone with any comments or suggestions?

--Paul

···

--
------------------------------------------------------------.

Chisimba PHP5 Framework - http://avoir.uwc.ac.za |

:------------------------------------------------------------:

I had a similar requirement, and the best I could do was to use
RichTextCtrl, which can export in HTML. Unfortunately, it can
only read XML, so I was forced to hold my data in XML; when I
need HMTL, I force it through a hidden RichTextCtrl. Ugly.

As I understand it, webkit is the best bet, but is currently
only available for Mac.

Phil

···

At 03:07 AM 9/16/2008, you wrote:

I am looking for a simple HTML editor in wxPython that will produce
relatively clean HTML for users used to working in word processors.

After spending some time trawling archives and search engines, the last
real reference that I came up with was using wxMozilla around 2005.

Is this really something that nobody has done?

I realise that this is not really a trivial thing to do, but I am
willing to at least start a project to get this done.

Anyone with any comments or suggestions?

--Paul

I had a similar requirement, and the best I could do was to use
RichTextCtrl, which can export in HTML. Unfortunately, it can
only read XML, so I was forced to hold my data in XML; when I
need HMTL, I force it through a hidden RichTextCtrl. Ugly.

Well XML is OK, a pain and hacky, but OK I suppose.

As I understand it, webkit is the best bet, but is currently
only available for Mac.

Well that's no good for the rest of the known universe. Thanks for the
info though!

OK, I will do some more digging around and try and come up with a
project or so to get a decent cross platform editor available - even if
I have to write one from scratch.

Thanks again!

--Paul

···

On Tue, 2008-09-16 at 06:11 -0700, Phil Mayes wrote:

Hi Paul,

I am looking for a simple HTML editor in wxPython that will produce
relatively clean HTML for users used to working in word processors.

After spending some time trawling archives and search engines, the last
real reference that I came up with was using wxMozilla around 2005.

Yup, this was a big reason I worked on wxMozilla. That is, until Mozilla Composer got split off from Mozilla and editing APIs started breaking... (Well, that and the problem that it will never work on Mac, at least until wxCocoa is completed.)

Is this really something that nobody has done?

It's something a lot of people want, but it's a huge effort to get right. HTML is a huge spec, and creating an engine that works natively with it is not really a one-man job. I've moved on to completing wxWebKit myself, but it's more a labor of love right now and so I can only work on it periodically. There's a lot of demand to use it, but not so much to work on it. :wink:

However, unless you don't plan to support copy and paste and any but the most basic formatting, or do conversions as Phil does, you're really going to need to use something like wxWebKit to get HTML editing capabilities. An HTML editor is really complex enough that it almost certainly should be done in C++ to perform reasonably well and will require several developers to get a solid working engine.

A lot of people, especially at the Python level, haven't come forth to put that level of effort in, which is why it's still an unsolved problem.

Thanks,

Kevin

···

On Sep 16, 2008, at 3:07 AM, Paul Scott wrote:

I realise that this is not really a trivial thing to do, but I am
willing to at least start a project to get this done.

Anyone with any comments or suggestions?

--Paul
--
------------------------------------------------------------.
> Chisimba PHP5 Framework - http://avoir.uwc.ac.za |
:------------------------------------------------------------:

All Email originating from UWC is covered by disclaimer
Home | UWC
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Well, I was looking to do a quick 'n dirty editor based on FCKEditor
(sorry in Kabul Afghanistan right now, so not much bandwidth to get
URL's). A dead simple thing that you can type text into and convert line
breaks to HTML breaks and basic formatting like bold, underline, add
image, links etc

The way that I would approach it, however, is to make it pluggable and
extensible so that features could be added.

I totally agree that it should be something done in C++, but I don't
have a) the time and b) the skills to do that right now.

I will continue digging and try put something together for cross
platform use, but any help would, of course be appreciated.

I will kick it off, then see what happens...

--Paul

···

On Tue, 2008-09-16 at 09:02 -0700, Kevin Ollivier wrote:

However, unless you don't plan to support copy and paste and any but
the most basic formatting, or do conversions as Phil does, you're
really going to need to use something like wxWebKit to get HTML
editing capabilities. An HTML editor is really complex enough that it
almost certainly should be done in C++ to perform reasonably well and
will require several developers to get a solid working engine.

I am new to this planet, but I"m pretty sure that PyCrust
is or includes a program editor , and if you change the
keyword list... I saw the keyword list while reading some
of the code, but I cant seem to find it at the moment...

    % find /usr/local/lib/wxPython-unicode-2.8.8.1/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/py -name \*.py -exec grep '"finally"' {} \;

...but if you poke around in that directory you might find an editor worth starting with.

Did I end in a preposition?
paul

···

--- On Tue, 9/16/08, Paul Scott <pscott@uwc.ac.za> wrote:

From: Paul Scott <pscott@uwc.ac.za>
Subject: Re: [wxpython-users] Simple HTML WYSIWYG editor
To: wxpython-users@lists.wxwidgets.org
Date: Tuesday, September 16, 2008, 11:41 AM
On Tue, 2008-09-16 at 06:11 -0700, Phil Mayes wrote:
> I had a similar requirement, and the best I could do
was to use
> RichTextCtrl, which can export in HTML.
Unfortunately, it can
> only read XML, so I was forced to hold my data in XML;
when I
> need HMTL, I force it through a hidden RichTextCtrl.
Ugly.
>

Well XML is OK, a pain and hacky, but OK I suppose.

> As I understand it, webkit is the best bet, but is
currently
> only available for Mac.

I don't know your particular use-case, but it would seem to me that
text formatting is trivially done by almost any editor (a wx.TextCtrl
could be hacked to export text formatting). The real difficulty is
getting everything else (divs with floats, margins, etc.) working to
the point of being worthwhile. It's been 8+ years since I touched any
of the tools (dreamweaver, etc.), but having seen the output of such
tools (some recently), I've never been particularly impressed with the
output. Then again, if it were reasonable to do it better, I would
hope that the makers of the software would have it produce better
output.

- Josiah

···

On Tue, Sep 16, 2008 at 9:39 AM, Paul Scott <pscott@uwc.ac.za> wrote:

On Tue, 2008-09-16 at 09:02 -0700, Kevin Ollivier wrote:

However, unless you don't plan to support copy and paste and any but
the most basic formatting, or do conversions as Phil does, you're
really going to need to use something like wxWebKit to get HTML
editing capabilities. An HTML editor is really complex enough that it
almost certainly should be done in C++ to perform reasonably well and
will require several developers to get a solid working engine.

Well, I was looking to do a quick 'n dirty editor based on FCKEditor
(sorry in Kabul Afghanistan right now, so not much bandwidth to get
URL's). A dead simple thing that you can type text into and convert line
breaks to HTML breaks and basic formatting like bold, underline, add
image, links etc

The way that I would approach it, however, is to make it pluggable and
extensible so that features could be added.

I totally agree that it should be something done in C++, but I don't
have a) the time and b) the skills to do that right now.

I will continue digging and try put something together for cross
platform use, but any help would, of course be appreciated.

I will kick it off, then see what happens...

--Paul

All Email originating from UWC is covered by disclaimer
Home | UWC

Editing html is not the question, nor is keywords (both are trivial,
and are available in basically every editor written in Python and
wxPython linked on the wxPython applications page). It seems like the
OP wants something along the lines of Dreamweaver, only in
Python/wxPython.

- Josiah

···

On Tue, Sep 16, 2008 at 10:30 AM, paul taney <paultaney@yahoo.com> wrote:

--- On Tue, 9/16/08, Paul Scott <pscott@uwc.ac.za> wrote:

From: Paul Scott <pscott@uwc.ac.za>
Subject: Re: [wxpython-users] Simple HTML WYSIWYG editor
To: wxpython-users@lists.wxwidgets.org
Date: Tuesday, September 16, 2008, 11:41 AM
On Tue, 2008-09-16 at 06:11 -0700, Phil Mayes wrote:
> I had a similar requirement, and the best I could do
was to use
> RichTextCtrl, which can export in HTML.
Unfortunately, it can
> only read XML, so I was forced to hold my data in XML;
when I
> need HMTL, I force it through a hidden RichTextCtrl.
Ugly.
>

Well XML is OK, a pain and hacky, but OK I suppose.

> As I understand it, webkit is the best bet, but is
currently
> only available for Mac.

I am new to this planet, but I"m pretty sure that PyCrust
is or includes a program editor , and if you change the
keyword list... I saw the keyword list while reading some
of the code, but I cant seem to find it at the moment...

   % find /usr/local/lib/wxPython-unicode-2.8.8.1/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/py -name \*.py -exec grep '"finally"' {} \;

...but if you poke around in that directory you might find an editor worth starting with.

Kevin,

It's something a lot of people want, but it's a huge effort to get right. HTML is a huge spec, and creating an engine that works natively with it is not really a one-man job. I've moved on to completing wxWebKit myself, but it's more a labor of love right now and so I can only work on it periodically. There's a lot of demand to use it, but not so much to work on it. :wink:

However, unless you don't plan to support copy and paste and any but the most basic formatting, or do conversions as Phil does, you're really going to need to use something like wxWebKit to get HTML editing capabilities. An HTML editor is really complex enough that it almost certainly should be done in C++ to perform reasonably well and will require several developers to get a solid working engine.

A lot of people, especially at the Python level, haven't come forth to put that level of effort in, which is why it's still an unsolved problem.

Thanks,

Kevin

What kind of help do you need? I mostly use Windows and I know just enough C++ to be dangerous, although it's been a few years since I've used it. My primary programming language is Python.

I do have VS2003 (aka 7.1) so I can probably build wxWebKit at least. I will admit to being somewhat green at building as well though. If you have the patience to deal with that (i.e. probably troubleshooting my inane questions), than I'd be happy to help out.

Mike

There are many ajax based WYSWYG editors. So once wxWebKit is
available in wxPython, you could choose one of them and embed the
editor as an html page into a wxWebKitCtrl. This is far from perfect
but probably a quick and easy solution. However you will need some
extra code to strip out the editor specific code.

Stani

···

On Wed, Sep 17, 2008 at 3:57 PM, Mike Driscoll <mike@pythonlibrary.org> wrote:

Kevin,

It's something a lot of people want, but it's a huge effort to get right.
HTML is a huge spec, and creating an engine that works natively with it is
not really a one-man job. I've moved on to completing wxWebKit myself, but
it's more a labor of love right now and so I can only work on it
periodically. There's a lot of demand to use it, but not so much to work on
it. :wink:

However, unless you don't plan to support copy and paste and any but the
most basic formatting, or do conversions as Phil does, you're really going
to need to use something like wxWebKit to get HTML editing capabilities. An
HTML editor is really complex enough that it almost certainly should be done
in C++ to perform reasonably well and will require several developers to get
a solid working engine.

A lot of people, especially at the Python level, haven't come forth to put
that level of effort in, which is why it's still an unsolved problem.

Thanks,

Kevin

What kind of help do you need? I mostly use Windows and I know just enough
C++ to be dangerous, although it's been a few years since I've used it. My
primary programming language is Python.

I do have VS2003 (aka 7.1) so I can probably build wxWebKit at least. I will
admit to being somewhat green at building as well though. If you have the
patience to deal with that (i.e. probably troubleshooting my inane
questions), than I'd be happy to help out.

Mike
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

--
Phatch Photo Batch Processor - http://photobatch.stani.be
SPE Python IDE - http://pythonide.stani.be

Hi guys,

>> A lot of people, especially at the Python level,
haven't come forth to put
>> that level of effort in, which is why it's
still an unsolved problem.

Another way of looking at it is that it was solved 10 years ago by
Robin Friedrich"s HTMLgen. I just use a python editor. And stop worrying about closing tags, they"re automatically put right.
Works for me. I dont ever want to edit raw HTML. Nobody does.

    The Python HTMLgen Module | Linux Journal

A sample of HTMLgen looks like this:

<code>

from HTMLgen import *
import HTMLcolors

Par = Paragraph
Bold = Strong
Em = Emphasis
nl = BR

meta = Container()
meta.append('<meta name="robots" content="noindex,nofollow">')
meta.append('<meta name="keywords" content="duh">')
meta.append('<meta name="description" content="duh">')

#instantiate a document
s = SimpleDocument(title="testing HTMLgen's basic moves")

# append a container
s.append(meta)

s.append(Heading(2, "I am the Heading, size 2."))
s.append(Par(Pre("I am Paragraph 1, Pre.")))
s.append(Par(Code("I am Paragraph 2 in Code tags.")))
s.append(Par(U("I am Paragraph 3 in Underline tags.")))

s.append(HR())

s.append(Heading(3, "I am the second Heading, size 3."))
s.append(Par(Em("I am Paragraph 4 in Em tags."), nl(),
             Bold("Now in Bold tags."), nl(),
             Pre("Now in Pre tags."), nl(),
             Code("Now in Code tags."), nl(),
             U("Now in Underline tags."), nl(),
             Blockquote("I am ending Paragraph 4 in Blockquote tags.")))

s.append(HR())

# --------------------------------------------

</code>

There are many variants of the above. Nevow.stan, Breve, and I even
wrote one; http://code.activestate.com/recipes/440563/ .

But that wasn't the question. He wants something like MS word with
output to html, though perhaps something a little more conscientious
than MS word for the output.

- Josiah

···

On Wed, Sep 17, 2008 at 7:42 AM, paul taney <paultaney@yahoo.com> wrote:

Hi guys,

>> A lot of people, especially at the Python level,
haven't come forth to put
>> that level of effort in, which is why it's
still an unsolved problem.

Another way of looking at it is that it was solved 10 years ago by
Robin Friedrich"s HTMLgen. I just use a python editor. And stop worrying about closing tags, they"re automatically put right.
Works for me. I dont ever want to edit raw HTML. Nobody does.

   The Python HTMLgen Module | Linux Journal

A sample of HTMLgen looks like this:

<code>

from HTMLgen import *
import HTMLcolors

Par = Paragraph
Bold = Strong
Em = Emphasis
nl = BR

meta = Container()
meta.append('<meta name="robots" content="noindex,nofollow">')
meta.append('<meta name="keywords" content="duh">')
meta.append('<meta name="description" content="duh">')

#instantiate a document
s = SimpleDocument(title="testing HTMLgen's basic moves")

# append a container
s.append(meta)

s.append(Heading(2, "I am the Heading, size 2."))
s.append(Par(Pre("I am Paragraph 1, Pre.")))
s.append(Par(Code("I am Paragraph 2 in Code tags.")))
s.append(Par(U("I am Paragraph 3 in Underline tags.")))

s.append(HR())

s.append(Heading(3, "I am the second Heading, size 3."))
s.append(Par(Em("I am Paragraph 4 in Em tags."), nl(),
            Bold("Now in Bold tags."), nl(),
            Pre("Now in Pre tags."), nl(),
            Code("Now in Code tags."), nl(),
            U("Now in Underline tags."), nl(),
            Blockquote("I am ending Paragraph 4 in Blockquote tags.")))

s.append(HR())

# --------------------------------------------

</code>

TextCtrl vs. RichTextCtrl
I’m using a TextCtrl in a panel to show progress (sort of like a log viewer, which can have hundred of entries). It works perfectly this way, but I wanted to use Rich Text so that I could highlight certain events that the user would be interested in.

But, when I added the wx.TE_RICHTEXT style, there were two problems: One, the text box didn’t scroll down to the last line automatically anymore. Two, the text window remained transparent until I stopped writing to it, although I could see the scroll bar update.

So then, I tried using the richtext.RichTextCtrl, which has the same problems. I experimented with a few things such as using AppendText, but couldn’t get anything to work.

Any ideas?

Carl,

This works for me:

(I use wxFormBuilder to make the GUI in which I created a panel (‘SrcPanel’). In the code I add the RichTextCtrl)

MyPanel class

class MyPanel(wx.Panel):
def init(self, parent):
self.parent = parent
self.rtc = rc.RichTextCtrl(parent, id=-1, style=wx.WANTS_CHARS|wx.TE_MULTILINE|wx.VSCROLL|wx.STATIC_BORDER)

def BeginBold(self):
    self.rtc.BeginBold()
   
def Clear(self):
    self.rtc.Clear()
   
def EndBold(self):
    self.rtc.EndBold()
    
def OnSize(self, evt):
    size = self.parent.GetSize()
    self.rtc.SetSize(size)
    
def SetValue(self, text):
    self.rtc.SetValue(text)



# More code.....

Main class

class TranslAid(wx.App):

def OnInit(self):
    self.res = xrc.XmlResource('TranslAid.xrc')
    self.init_frame()
    return True



def init_frame(self):
    self.frame = self.res.LoadFrame(None, 'TranslAid')
    self.SrcPanel = xrc.XRCCTRL(self.frame, "SrcPanel")
    self.tbSource = MyPanel(self.SrcPanel)
    self.SrcPanel.Bind(wx.EVT_SIZE, self.tbSource.OnSize)

# More code.....

in other class:

self.parent.tbSource.BeginBold()
self.parent.tbSource.SetValue(strSource)
self.parent.tbSource.EndBold()

Frans

···

From: s7plc@ttlc.net
To: wxpython-users@lists.wxwidgets.org
Date: Sat, 6 Dec 2008 17:02:48 -0500
Subject: [wxpython-users] TextCtrl vs. RichTextCtrl

I’m using a TextCtrl in a panel to show progress (sort of like a log viewer, which can have hundred of entries). It works perfectly this way, but I wanted to use Rich Text so that I could highlight certain events that the user would be interested in.

But, when I added the wx.TE_RICHTEXT style, there were two problems: One, the text box didn’t scroll down to the last line automatically anymore. Two, the text window remained transparent until I stopped writing to it, although I could see the scroll bar update.

So then, I tried using the richtext.RichTextCtrl, which has the same problems. I experimented with a few things such as using AppendText, but couldn’t get anything to work.

Any ideas?


Ook nieuwsgierig naar de nieuwe Messenger? Download 'm hier

Thanks Frans. I gave it a try, but had the
same results. It’s hard to describe what I’m seeing, so I will
strip out some code and post a bare project with a textctrl and richtxtctrl. I’m
also going to look at the ListCtrl and see if that would be a better tool for
the job.

Carl

···

From:
wxpython-users-bounces@lists.wxwidgets.org
[mailto:wxpython-users-bounces@lists.wxwidgets.org] On Behalf Of Frans Stronkman
Sent: Sunday, 7. December 2008
05:01
To: wxPython Userlist
Subject: RE: [wxpython-users]
TextCtrl vs. RichTextCtrl

Carl,

This works for me:

(I use wxFormBuilder to make the GUI in which I created a panel
(‘SrcPanel’). In the code I add the RichTextCtrl)

MyPanel class

class MyPanel(wx.Panel):

def __init__(self, parent):

    self.parent = parent

    self.rtc = rc.RichTextCtrl(parent,

id=-1, style=wx.WANTS_CHARS|wx.TE_MULTILINE|wx.VSCROLL|wx.STATIC_BORDER)

def BeginBold(self):

    self.rtc.BeginBold()

   

def Clear(self):

    self.rtc.Clear()

   

def EndBold(self):

    self.rtc.EndBold()

    

def OnSize(self, evt):

    size = self.parent.GetSize()

    self.rtc.SetSize(size)

    

def SetValue(self, text):

    self.rtc.SetValue(text)



# More code.....

Main class

class TranslAid(wx.App):

def OnInit(self):

    self.res =

xrc.XmlResource(‘TranslAid.xrc’)

    self.init_frame()

    return True



def init_frame(self):

    self.frame =

self.res.LoadFrame(None, ‘TranslAid’)

    self.SrcPanel =

xrc.XRCCTRL(self.frame, “SrcPanel”)

    self.tbSource =

MyPanel(self.SrcPanel)

    self.SrcPanel.Bind(wx.EVT_SIZE,

self.tbSource.OnSize)

# More code.....

in other class:

self.parent.tbSource.BeginBold()

self.parent.tbSource.SetValue(strSource)

self.parent.tbSource.EndBold()

Frans


From: s7plc@ttlc.net

To: wxpython-users@lists.wxwidgets.org

Date: Sat, 6 Dec 2008 17:02:48 -0500

Subject: [wxpython-users] TextCtrl vs. RichTextCtrl

I’m using a TextCtrl in a panel to show progress
(sort of like a log viewer, which
can have hundred of entries). It
works perfectly this way, but I wanted to use Rich Text so that I could
highlight certain events that the user would be interested in.

But, when I
added the wx.TE_RICHTEXT style, there were two problems: One, the text box
didn’t scroll down to the last line automatically anymore. Two, the text window
remained transparent until I stopped writing to it, although I could see the scroll bar update.

So then, I tried
using the richtext.RichTextCtrl, which has the same problems. I experimented with a few things such
as using AppendText, but couldn’t get anything to work.

Any ideas?


Ook nieuwsgierig naar de nieuwe Messenger? Download 'm hier

Carl wrote:

I'm using a TextCtrl in a panel to show progress (sort of like a log viewer, which can have hundred of entries). It works perfectly this way, but I wanted to use Rich Text so that I could highlight certain events that the user would be interested in.

But, when I added the wx.TE_RICHTEXT style, there were two problems:

Did you try both wx.TE_RICH and wx.TE_RICH2? There is a different native control selected based on which flag is used, and they have some differences in behavior.

One, the text box didn't scroll down to the last line automatically anymore. Two, the text window remained transparent until I stopped writing to it, although I could see the scroll bar update.

Are you blocking the event loop by some long running task?

http://wiki.wxpython.org/LongRunningTasks
http://wiki.wxpython.org/Non-Blocking_Gui

So then, I tried using the richtext.RichTextCtrl, which has the same problems. I experimented with a few things such as using AppendText, but couldn't get anything to work.

Any ideas?

If you still have problems with it then please see http://wiki.wxpython.org/MakingSampleApps and send us an example of the problem.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hello Robin,

Yes, I tried both types of RichText, with the same results. Also, I forgot
to mention that the OS is XP Pro, I'm using the latest version of wxPython,
and my project is based on the AUI_Manager.

I'm not intentionally blocking the event loop. For now, everything is
running in the main thread (to put these pseudo-dialogs in separate threads
is a future task, but not necessary now). It works fine with the TextCtrl.

I've attached some code that shows exactly what I'm experiencing. The app
starts with two buttons, and they create panes with normal text and rich
text. I'm not using a timer to slow down the updates, but there are enough
lines to see that the normal text display updates with each new line and
always scrolls to the last line. The rich text pane doesn't update at all
until all lines are appended, and the scroll position is at the top. I
noticed that neither panel will scroll, but that doesn't happen in my real
application, and can be ignored.

Thanks for taking a look.

Carl

AUI_Test_02.py (2.48 KB)

···

-----Original Message-----
From: wxpython-users-bounces@lists.wxwidgets.org
[mailto:wxpython-users-bounces@lists.wxwidgets.org] On Behalf Of Robin Dunn
Sent: Sunday, 7. December 2008 15:59
To: wxpython-users@lists.wxwidgets.org
Subject: Re: [wxpython-users] TextCtrl vs. RichTextCtrl

Carl wrote:

I'm using a TextCtrl in a panel to show progress (sort of like a log
viewer, which can have hundred of entries). It works perfectly this way,
but I wanted to use Rich Text so that I could highlight certain events
that the user would be interested in.

But, when I added the wx.TE_RICHTEXT style, there were two problems:

Did you try both wx.TE_RICH and wx.TE_RICH2? There is a different
native control selected based on which flag is used, and they have some
differences in behavior.

One, the text box didn't scroll down to the last line automatically
anymore. Two, the text window remained transparent until I stopped
writing to it, although I could see the scroll bar update.

Are you blocking the event loop by some long running task?

http://wiki.wxpython.org/LongRunningTasks
http://wiki.wxpython.org/Non-Blocking_Gui

So then, I tried using the richtext.RichTextCtrl, which has the same
problems. I experimented with a few things such as using AppendText, but
couldn't get anything to work.

Any ideas?

If you still have problems with it then please see
http://wiki.wxpython.org/MakingSampleApps and send us an example of the
problem.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

I test your app but I cant see any difference between both… only the richttext button take a little more time to charge, but in both we can scroll to the bottom with no problem or odd behavior.

I use Ubuntu 8.10, Python 2.5.2 and wxPython 2.8.9.1

···

2008/12/7 Carl s7plc@ttlc.net

Hello Robin,

Yes, I tried both types of RichText, with the same results. Also, I forgot

to mention that the OS is XP Pro, I’m using the latest version of wxPython,

and my project is based on the AUI_Manager.

I’m not intentionally blocking the event loop. For now, everything is

running in the main thread (to put these pseudo-dialogs in separate threads

is a future task, but not necessary now). It works fine with the TextCtrl.

I’ve attached some code that shows exactly what I’m experiencing. The app

starts with two buttons, and they create panes with normal text and rich

text. I’m not using a timer to slow down the updates, but there are enough

lines to see that the normal text display updates with each new line and

always scrolls to the last line. The rich text pane doesn’t update at all

until all lines are appended, and the scroll position is at the top. I

noticed that neither panel will scroll, but that doesn’t happen in my real

application, and can be ignored.

Thanks for taking a look.

Carl


Saludos / Best regards

Mario Lacunza
Software Architect - Webmaster

Email: mlacunza [AT] gmail [DOT] com
http://www.lacunza.info

Lima - Peru

Mario Lacunza wrote:

2008/12/7 Carl <s7plc@ttlc.net <mailto:s7plc@ttlc.net>>

    Hello Robin,

    Yes, I tried both types of RichText, with the same results. Also,
    I forgot
    to mention that the OS is XP Pro, I'm using the latest version of
    wxPython,
    and my project is based on the AUI_Manager.

    I'm not intentionally blocking the event loop. For now, everything is
    running in the main thread (to put these pseudo-dialogs in
    separate threads
    is a future task, but not necessary now). It works fine with the
    TextCtrl.

    I've attached some code that shows exactly what I'm experiencing.
    The app
    starts with two buttons, and they create panes with normal text
    and rich
    text. I'm not using a timer to slow down the updates, but there
    are enough
    lines to see that the normal text display updates with each new
    line and
    always scrolls to the last line. The rich text pane doesn't update
    at all
    until all lines are appended, and the scroll position is at the top. I
    noticed that neither panel will scroll, but that doesn't happen in
    my real
    application, and can be ignored.

    Thanks for taking a look.

    Carl

I test your app but I cant see any difference between both.. only the richttext button take a little more time to charge, but in both we can scroll to the bottom with no problem or odd behavior.

I use Ubuntu 8.10, Python 2.5.2 and wxPython 2.8.9.1

--
Saludos / Best regards

Mario Lacunza
Software Architect - Webmaster

Email: mlacunza [AT] gmail [DOT] com
http://www.lacunza.info
Lima - Peru

It definitely does not scroll on Windows XP. Unfortunately, I don't know enough about AUI and / or nested panels to understand why...so I'm not sure which is causing the issue or if that even is the issue. Hmmm

Mike

Yes you are right in Windows is blocked your GUI, I see is more low the charge (so this is possible because I use WinXP inside a Virtualbos but I assign 512MB to run Win) but I cant scrol the both control the GUI is complete locked.

···

2008/12/8 Mike Driscoll mike@pythonlibrary.org

Mario Lacunza wrote:

2008/12/7 Carl <s7plc@ttlc.net mailto:s7plc@ttlc.net>

It definitely does not scroll on Windows XP. Unfortunately, I don’t know enough about AUI and / or nested panels to understand why…so I’m not sure which is causing the issue or if that even is the issue. Hmmm

Mike


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


Saludos / Best regards

Mario Lacunza
Software Architect - Webmaster

Email: mlacunza [AT] gmail [DOT] com
http://www.lacunza.info
Lima - Peru