Help with wx.NoteBook Example listed in wxPy Wiki

Have you modified the code at all? I certainly don’t see that
square when I run that exact code on XP, nor do I see any
conceivable reason why it would occur.
Are you running this from a command line, or from inside an IDE?
Which OS?

···

Aditya wrote:

Hello World,

      I am pretty new to Programming. I was going through the

example of wx.NoteBook as listed over here
at wxPy Wiki
.

However, when I run this code:

  • a small Black Square
  • appears on Top-Left
  • of Page 1 of the App.
    This Black Spot goes away once I navigate to other pages and
    come back to Page 1. I am using this example code to develop
    my first GUI Application and this ‘out-of-order-Black-Spot’ is
    irking me for last 3 days.
-- Tim Roberts, Providenza & Boekelheide, Inc.

timr@probo.com

I haven’t modified the code at all. Using it ‘as is’ mentioned on that Wiki.

I am using Windows7, wxPython 2.9.4.0, Python 2.7.3. Have tried running it both from the Command Line as well as PyCharm IDE.

Regards.

···

On Monday, November 19, 2012 11:18:40 PM UTC+5:30, Tim Roberts wrote:

Have you modified the code at all?  I certainly don't see that

square when I run that exact code on XP, nor do I see any
conceivable reason why it would occur.

Are you running this from a command line, or from inside an IDE? 

Which OS?

-- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Hi,

Please don't top-post your replies here.

Have you modified the code at all? I certainly don't see that square when
I run that exact code on XP, nor do I see any conceivable reason why it
would occur.

Are you running this from a command line, or from inside an IDE? Which
OS?

I haven't modified the code at all. Using it 'as is' mentioned on that Wiki.

I am using Windows7, wxPython 2.9.4.0, Python 2.7.3. Have tried running it
both from the Command Line as well as PyCharm IDE.

Regards.

It works fine here for me as well. Win7 (US English).

Could it have something to do with your default code-page or
something? Try adding the following as the first line in the Python
script (starting in column 1):

# -*- coding: utf-8 -*-#

I don't know if it will help, but it does not hurt, here.

Good luck.

Cheers,
Scott.

···

On Mon, Nov 19, 2012 at 1:08 PM, Aditya <code.aditya@gmail.com> wrote:

On Monday, November 19, 2012 11:18:40 PM UTC+5:30, Tim Roberts wrote:

Doesn’t help. The problem still persists.

Regards.

···

On Monday, November 19, 2012 11:55:27 PM UTC+5:30, grun...@gmail.com wrote:

Hi,

Please don’t top-post your replies here.

On Mon, Nov 19, 2012 at 1:08 PM, Aditya code....@gmail.com wrote:

On Monday, November 19, 2012 11:18:40 PM UTC+5:30, Tim Roberts wrote:

Have you modified the code at all? I certainly don’t see that square when

I run that exact code on XP, nor do I see any conceivable reason why it

would occur.

Are you running this from a command line, or from inside an IDE? Which

OS?

I haven’t modified the code at all. Using it ‘as is’ mentioned on that Wiki.

I am using Windows7, wxPython 2.9.4.0, Python 2.7.3. Have tried running it

both from the Command Line as well as PyCharm IDE.

Regards.

It works fine here for me as well. Win7 (US English).

Could it have something to do with your default code-page or

something? Try adding the following as the first line in the Python

script (starting in column 1):

-- coding: utf-8 --#

I don’t know if it will help, but it does not hurt, here.

Good luck.

Cheers,

Scott.