New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo file Throbber.py throwing exception (minor bug) #924

Closed
TSN-ADMIN opened this Issue Jul 15, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@TSN-ADMIN
Copy link

TSN-ADMIN commented Jul 15, 2018

Operating system: Microsoft Windows 7 SP1 [Version 6.1.7601]
wxPython version: 4.0.3 msw (phoenix) wxWidgets 3.0.5
Stock or custom build: Stock
Python version: v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
Stock or custom build: Stock

Description of the problem:

  • Run the wxPython Demo
  • Select Throbber
  • Exception (when directly run from command line):
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
wx.version: 4.0.3 msw (phoenix) wxWidgets 3.0.5
Traceback (most recent call last):
  File "D:\Dev\Python27\Lib\site-packages\wxPython-demo-4.0.1\demo\run.py", line 80, in OnInit
    win = self.demoModule.runTest(frame, frame, Log())
  File ".\Throbber.py", line 235, in runTest
    win = TestPanel(nb, log)
  File ".\Throbber.py", line 49, in __init__
    if isinstance(seq, range):
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types
OnInit returned false, exiting...

See last commit on demo file Throbber.py

Changing range in line 49 from Throbber.py to list fixed this for me.

@RobinD42

This comment has been minimized.

Copy link
Member

RobinD42 commented Jul 31, 2018

Fixed by #946

@RobinD42 RobinD42 closed this Jul 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment