No replies,
I'm interested because it dosn't in my hands (just loads the plain text within
a rtf file), and as this control is pivotal in a current app I'm writing its
important to me.
Thanks again in anticipation
richard
No replies,
I'm interested because it dosn't in my hands (just loads the plain text within
a rtf file), and as this control is pivotal in a current app I'm writing its
important to me.
Thanks again in anticipation
richard
It would help your cause if you'd post a minimal code sample and an RTF file that reproduces the behavior you see.
That way people on the list would be able to run the code, see if they can quickly modify it to work and reply. At the very least you'll know that you're not the only one with the problem.
Thanks.
Richard Terry wrote:
No replies,
I'm interested because it dosn't in my hands (just loads the plain text within a rtf file), and as this control is pivotal in a current app I'm writing its important to me.
Thanks again in anticipation
richard
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Sorry,
The code is straight out of the demo file I think (At least I used the demo to
load the file so I guess this is the load routine, taken straight from the
demo).
def OnFileOpen(self, evt):
# TODO: Use RichTextBuffer.GetExtWildcard to get the wildcard string
dlg = wx.FileDialog(self, "Choose a filename",
wildcard="All files (*.*)|*.*",
style=wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
path = dlg.GetPath()
if path:
# TODO: use the filter index to determine what file type to
use
self.rtc.LoadFile(path, rt.RICHTEXT_TYPE_TEXT)
dlg.Destroy()
The rft was created using openoffice
see the piccie.
On Monday 29 January 2007 10:18, Eli Golovinsky wrote:
It would help your cause if you'd post a minimal code sample and an RTF
file that reproduces the behavior you see.That way people on the list would be able to run the code, see if they
can quickly modify it to work and reply. At the very least you'll know
that you're not the only one with the problem.Thanks.
Richard Terry wrote:
> No replies,
>
> I'm interested because it dosn't in my hands (just loads the plain text
> within a rtf file), and as this control is pivotal in a current app I'm
> writing its important to me.
>
> Thanks again in anticipation
>
> richard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
As I understand it, the Rich Text Control doesn't actually load RTF documents yet, but they're working on it.
David
Sorry,
The code is straight out of the demo file I think (At least I used
the demo to
load the file so I guess this is the load routine, taken straight
from the
demo).def OnFileOpen(self, evt):
# TODO: Use RichTextBuffer.GetExtWildcard to get the wildcard
string
dlg = wx.FileDialog(self, "Choose a filename",
wildcard="All files (*.*)|*.*",
style=wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
path = dlg.GetPath()
if path:
# TODO: use the filter index to determine what file
type to
use
self.rtc.LoadFile(path, rt.RICHTEXT_TYPE_TEXT)
dlg.Destroy()The rft was created using openoffice
see the piccie.
On Monday 29 January 2007 10:18, Eli Golovinsky wrote:
> It would help your cause if you'd post a minimal code sample and an
RTF
> file that reproduces the behavior you see.
>
> That way people on the list would be able to run the code, see if they
> can quickly modify it to work and reply. At the very least you'll know
> that you're not the only one with the problem.
>
>
> Thanks.
>
> Richard Terry wrote:
> > No replies,
> >
> > I'm interested because it dosn't in my hands (just loads the
plain text
> > within a rtf file), and as this control is pivotal in a current
app I'm
> > writing its important to me.
> >
> > Thanks again in anticipation
> >
> > richard
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> > For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
I don't suppose you would know who to ask about time-lines?
Richard
On Monday 29 January 2007 13:17, David Woods wrote:
As I understand it, the Rich Text Control doesn't actually load RTF
documents yet, but they're working on it.David
> Sorry,
>
> The code is straight out of the demo file I think (At least I used
> the demo to
> load the file so I guess this is the load routine, taken straight
> from the
> demo).
>
> def OnFileOpen(self, evt):
> # TODO: Use RichTextBuffer.GetExtWildcard to get the wildcard
> string
> dlg = wx.FileDialog(self, "Choose a filename",
> wildcard="All files (*.*)|*.*",
> style=wx.OPEN)
> if dlg.ShowModal() == wx.ID_OK:
> path = dlg.GetPath()
> if path:
> # TODO: use the filter index to determine what file
> type to
> use
> self.rtc.LoadFile(path, rt.RICHTEXT_TYPE_TEXT)
> dlg.Destroy()
>
> The rft was created using openoffice
>
> see the piccie.
>
> On Monday 29 January 2007 10:18, Eli Golovinsky wrote:
> > It would help your cause if you'd post a minimal code sample and an
>
> RTF
>
> > file that reproduces the behavior you see.
> >
> > That way people on the list would be able to run the code, see if they
> > can quickly modify it to work and reply. At the very least you'll know
> > that you're not the only one with the problem.
> >
> >
> > Thanks.
> >
> > Richard Terry wrote:
> > > No replies,
> > >
> > > I'm interested because it dosn't in my hands (just loads the
>
> plain text
>
> > > within a rtf file), and as this control is pivotal in a current
>
> app I'm
>
> > > writing its important to me.
> > >
> > > Thanks again in anticipation
> > >
> > > richard
> > >
> > > --------------------------------------------------------------------
> > >- To unsubscribe, e-mail:
> > > wxPython-users-unsubscribe@lists.wxwidgets.org For additional
> > > commands, e-mail: wxPython-users-help@lists.wxwidgets.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> > For additional commands, e-mail:
> > wxPython-users-help@lists.wxwidgets.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Funny thing, I just looked in the wx docs and in it says on the "wxRichTextCtrl overview" page that RTF reading / writing is not implemented yet.
http://www.wxwindows.org/manuals/stable/wx_wxrichtextctrloverview.html
Richard Terry wrote:
I don't suppose you would know who to ask about time-lines?
Richard
On Monday 29 January 2007 13:17, David Woods wrote:
As I understand it, the Rich Text Control doesn't actually load RTF
documents yet, but they're working on it.David
Sorry,
The code is straight out of the demo file I think (At least I used
the demo to
load the file so I guess this is the load routine, taken straight
from the
demo).def OnFileOpen(self, evt):
# TODO: Use RichTextBuffer.GetExtWildcard to get the wildcard
string
dlg = wx.FileDialog(self, "Choose a filename",
wildcard="All files (*.*)|*.*",
style=wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
path = dlg.GetPath()
if path:
# TODO: use the filter index to determine what file
type to
use
self.rtc.LoadFile(path, rt.RICHTEXT_TYPE_TEXT)
dlg.Destroy()The rft was created using openoffice
see the piccie.
On Monday 29 January 2007 10:18, Eli Golovinsky wrote:
> It would help your cause if you'd post a minimal code sample and anRTF
> file that reproduces the behavior you see.
>
> That way people on the list would be able to run the code, see if they
> can quickly modify it to work and reply. At the very least you'll know
> that you're not the only one with the problem.
>
> Thanks.
>
> Richard Terry wrote:
> > No replies,
> >
> > I'm interested because it dosn't in my hands (just loads theplain text
> > within a rtf file), and as this control is pivotal in a current
app I'm
> > writing its important to me.
> >
> > Thanks again in anticipation
> >
> > richard
> >
> > --------------------------------------------------------------------
> >- To unsubscribe, e-mail:
> > wxPython-users-unsubscribe@lists.wxwidgets.org For additional
> > commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail:
> wxPython-users-help@lists.wxwidgets.org---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
No, I don't.
I have my own mini-RTF control, with mini-RTF parser, that I've been using
for a couple of years now, so my need isn't as urgent as yours. My control
only handles character formatting, because that's all I need, though it
wouldn't really be that difficult to add paragraph formatting as well.
If you're interested in looking at it, see the source code link at
http://www.transana.org.
David
I don't suppose you would know who to ask about time-lines?
Richard
On Monday 29 January 2007 13:17, David Woods wrote:
> As I understand it, the Rich Text Control doesn't actually load RTF
> documents yet, but they're working on it.
>
> David
>
> > Sorry,
> >
> > The code is straight out of the demo file I think (At
least I used
> > the demo to load the file so I guess this is the load routine,
> > taken straight from the
> > demo).
> >
> > def OnFileOpen(self, evt):
> > # TODO: Use RichTextBuffer.GetExtWildcard to get the
> > wildcard string
> > dlg = wx.FileDialog(self, "Choose a filename",
> > wildcard="All files (*.*)|*.*",
> > style=wx.OPEN)
> > if dlg.ShowModal() == wx.ID_OK:
> > path = dlg.GetPath()
> > if path:
> > # TODO: use the filter index to
determine what file
> > type to use
> > self.rtc.LoadFile(path, rt.RICHTEXT_TYPE_TEXT)
> > dlg.Destroy()
> >
> > The rft was created using openoffice
> >
> > see the piccie.
> >
> > On Monday 29 January 2007 10:18, Eli Golovinsky wrote:
> > > It would help your cause if you'd post a minimal code
sample and
> > an
> >
> > RTF
> >
> > > file that reproduces the behavior you see.
> > >
> > > That way people on the list would be able to run the
code, see if
> > they > can quickly modify it to work and reply. At the
very least
> > you'll know > that you're not the only one with the problem. >
> > >
> > > Thanks.
> > >
> > > Richard Terry wrote:
> > > > No replies,
> > > >
> > > > I'm interested because it dosn't in my hands (just loads the
> >
> > plain text
> >
> > > > within a rtf file), and as this control is pivotal
in a current
> >
> > app I'm
> >
> > > > writing its important to me.
> > > >
> > > > Thanks again in anticipation
> > > >
> > > > richard
> > > >
> > > >
> >
--------------------------------------------------------------------
> > > >- To unsubscribe, e-mail:
> > > > wxPython-users-unsubscribe@lists.wxwidgets.org For additional
> > > > commands, e-mail: wxPython-users-help@lists.wxwidgets.org
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
> > > For additional commands, e-mail:
> > > wxPython-users-help@lists.wxwidgets.org
> >
> >
--------------------------------------------------------------------
> > -
> > To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
> > For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail:
> wxPython-users-help@lists.wxwidgets.org---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
David Woods wrote:
As I understand it, the Rich Text Control doesn't actually load RTF documents yet, but they're working on it.
I also need to get the wxPython wrappers updated, there have been a number of API changes/additions that haven't been folded in yet... So the RTC widget is really still "in progress."
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!