STC

Hi,

    I have a problem with StyledTextCtrl. When I enter a wide
character(ex. ğ,ş) on the beginning of a line it doesn't insert it. Do
you have any idea why does it happen ?

Thanks

Does entering the character anywhere else in the line work? Have you
tested it in Scite (www.scintilla.org), which uses the latest Scintilla?
Which version of wxPython are you using, and on what platform?

- Josiah

···

"Murat Erten" <murerten@gmail.com> wrote:

    I have a problem with StyledTextCtrl. When I enter a wide
character(ex. ğ,ş) on the beginning of a line it doesn't insert it. Do
you have any idea why does it happen ?

Have you checked the KeyEvents demo to verify that the character being

Other than that, I don't know. You could try sending a message to the
scintilla mailing list (scintilla-interest@lyra.org), Neil may know.

- Josiah

···

sent from your keyboard is what you expect?

"Murat Erten" <murerten@gmail.com> wrote:

I downloaded and tried scite and it works.
I am using wxPython-2.7.0.1 6.10.2006 build.
Slackware-11.0
And yes after the first character it does work.

2006/10/15, Josiah Carlson <jcarlson@uci.edu>:
>
> "Murat Erten" <murerten@gmail.com> wrote:
> > I have a problem with StyledTextCtrl. When I enter a wide
> > character(ex. ğ,ş) on the beginning of a line it doesn't insert it. Do
> > you have any idea why does it happen ?
>
> Does entering the character anywhere else in the line work? Have you
> tested it in Scite (www.scintilla.org), which uses the latest Scintilla?
> Which version of wxPython are you using, and on what platform?
>
> - Josiah
>
>

Hello

I try to paint on a wx.Toolbar with a wx.ClientDC. The Problem are under Windows and Linux (GTK) different. Linux don't show the Painted Text. But Windows replace the Text with the toolbar.

Exist any way to paint easy something on a Toolbar (wx.StaticText looks ugly, because it don't center the text vertical).

Greeze Micha

    def drawKonto(self, text):
        dc = wx.ClientDC(self.toolbar)
        dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
        dc.Clear()
        dc.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
        dc.DrawText(text, 10, 10)

Micha Reiser wrote:

Hello

I try to paint on a wx.Toolbar with a wx.ClientDC. The Problem are under Windows and Linux (GTK) different. Linux don't show the Painted Text. But Windows replace the Text with the toolbar.

Exist any way to paint easy something on a Toolbar (wx.StaticText looks ugly, because it don't center the text vertical).

Greeze Micha

   def drawKonto(self, text):
       dc = wx.ClientDC(self.toolbar)
       dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
       dc.Clear()
       dc.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
       dc.DrawText(text, 10, 10)

It probably depends on how the native control is implemented, but you may have better luck with binding a EVT_PAINT handler to the toolbar and then using a wx.PaintDC in that handler.

···

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

Do you use wxPython unicode version?

···

On 10/16/06, Murat Erten <murerten@gmail.com> wrote:

Hi,

    I have a problem with StyledTextCtrl. When I enter a wide
character(ex. ğ,ş) on the beginning of a line it doesn't insert it. Do
you have any idea why does it happen ?

Thanks

--
I like python!
UliPad <<The Python Editor>>: UliPad - Woodpecker Wiki for CPUG
My Blog: http://www.donews.net/limodou

17.10.2006 tarihinde limodou <limodou@gmail.com> yazmış:

> Hi,
>
> I have a problem with StyledTextCtrl. When I enter a wide
> character(ex. ğ,ş) on the beginning of a line it doesn't insert it. Do
> you have any idea why does it happen ?
>
> Thanks
>
Do you use wxPython unicode version?

--
I like python!
UliPad <<The Python Editor>>: UliPad - Woodpecker Wiki for CPUG
My Blog: http://www.donews.net/limodou

Yes.
My system is:

wxPython 2.7.0.1-pre-20061006 build
GTK-2.4.0
Slackware 11.0

When I first open the program it inserts but after I hit backspace and
try again it doesn't.

···

On 10/16/06, Murat Erten <murerten@gmail.com> wrote: