[wxPython] Change upgrading from wxPython 2.3.1 to 2.3.2

Please see the attached program. It's buggy (STCs don't have SetValue), but
don't worry about that. I was developing it under 2.3.1 and it worked as
expected (a single window, filled with a wxNotebook with StyledTextControls
on each page). I upgraded to 2.3.2 (to get round the OOR issue - at least, I
think that's what I was hitting...) and when I ran the program the
wxNotebook is now showing in a small area at the top left of my frame.

What changed? I see nothing in the message announcing the release which
explains this...

Thanks,
Paul.

PS And what do I do to fix it?

-------- cut here --------
from wxPython.wx import *
from wxPython.stc import *

···

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

class MyNB(wxNotebook):
    def __init__(self, parent, id):
        wxNotebook.__init__(self, parent, id)
        win = wxStyledTextCtrl(parent, -1)
        self.AddPage(win, "Page 1")
        win = wxStyledTextCtrl(parent, -1)
        self.AddPage(win, "Page 2")
        EVT_NOTEBOOK_PAGE_CHANGING(self, -1, self.PageChanging)
    def PageChanging(self, ev):
        if ev.GetSelection() == 0: # Going from "Page 1"
            old = self.GetPage(0)
            new = self.GetPage(1)
            new.SetValue(old.GetValue())

if __name__ == '__main__':
    import sys
    app = wxPySimpleApp()
    frame = wxFrame(None, -1, "Tester...", size=(640, 480))
    win = MyNB(frame, -1)
    frame.Show(true)
    app.MainLoop()

Hi ,
Is anyone else having trouble downloading the new wxpython? - I have been
trying for a few days now.
My downloads always time out and are reset. This does not happen with other
sites.
Cheers,
Andrew

···

_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law.

This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre.

www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322

Andrew Perella wrote:

Hi ,
Is anyone else having trouble downloading the new wxpython? - I have been
trying for a few days now.
My downloads always time out and are reset. This does not happen with other

Me too. Aparently Boa 0.9 server that SF uses does not support resume :frowning:

Niki Spahiev

Are there no mirrors of this site?

···

-----Original Message-----
From: wxpython-users-admin@lists.wxwindows.org
[mailto:wxpython-users-admin@lists.wxwindows.org]On Behalf Of Niki
Spahiev
Sent: 14 December 2001 14:23
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] downloading new version

Andrew Perella wrote:

> Hi ,
> Is anyone else having trouble downloading the new wxpython? - I
have been
> trying for a few days now.
> My downloads always time out and are reset. This does not
happen with other

Me too. Aparently Boa 0.9 server that SF uses does not support resume :frowning:

Niki Spahiev

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

_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be
read, copied and used only by the intended recipient. No
communication sent by e-mail to or from Eutechnyx is intended to
give rise to contractual or other legal liability, apart from
liability which cannot be excluded under English law.

This message has been checked for all known viruses by Star
Internet delivered through the MessageLabs Virus Control Centre.

www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322

_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law.

This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre.

www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322

Please see the attached program. It's buggy (STCs don't have SetValue),

but

don't worry about that. I was developing it under 2.3.1 and it worked as
expected (a single window, filled with a wxNotebook with

StyledTextControls

on each page). I upgraded to 2.3.2 (to get round the OOR issue - at least,

I

think that's what I was hitting...) and when I ran the program the
wxNotebook is now showing in a small area at the top left of my frame.

The wxSTC's should be children of the notebook, not the frame.

···

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