Coder Social home page Coder Social logo

minixs's People

Contributors

bmattern avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

pushkarlab

minixs's Issues

Layout error in minixs calibrator

I don't know if anyone is watching this, but I figure I'll leave this issue here to help anyone who comes along after me and sees this same problem.

Installing this package in 2016 (so python 2.7.10, wxpython 3.0.2), I see the following (and similar on Windows):

bruce@titanium [minixs](master) > ./bin/calibrator 
Traceback (most recent call last):
  File "./bin/calibrator", line 4, in <module>
    main()
  File "/home/bruce/source/minixs/lib/minixs/gui/calibrator/calibrator.py", line 71, in main
    app = CalibratorApp()
  File "/home/bruce/source/minixs/lib/minixs/gui/calibrator/calibrator.py", line 28, in __init__
    view = CalibratorView(None, ID_MAIN_FRAME, "miniXS Calibrator")
  File "/home/bruce/source/minixs/lib/minixs/gui/calibrator/calibrator_view.py", line 444, in __init__
    self.panel = CalibratorPanel(self, wx.ID_ANY)
  File "/home/bruce/source/minixs/lib/minixs/gui/calibrator/calibrator_view.py", line 401, in __init__
    panel = FilterPanel(self, wx.ID_ANY)
  File "/home/bruce/source/minixs/lib/minixs/gui/calibrator/calibrator_view.py", line 124, in __init__
    grid.Add(label, 0, wx.ALIGN_CENTER_VERTICAL)
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 14453, in Add
    return _core_.Sizer_Add(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ../src/common/sizer.cpp(1401) in DoInsert(): too many items (13 > 2*6) in grid sizer (maybe you should omit the number of either rows or columns?)

This is solved by editing this line to read

    grid = wx.FlexGridSizer(0, 2, HPAD, VPAD)

Perhaps the syntax for the FlexGridSizer has changed since the calibrator was written...? I got my hint from here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.