Changeset 80013a6 in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Sep 12, 2016 10:40:05 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
41e7f2e
Parents:
2e49f9e
Message:

allow 'edit' option when comparing precision, giving sliders for the parameter values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r424fe00 r80013a6  
    958958    from bumps.gui.app_frame import AppFrame  # type: ignore 
    959959 
     960    is_mac = "cocoa" in wx.version() 
     961    # Create an app if not running embedded 
     962    app = wx.App() if wx.GetApp() is None else None 
    960963    problem = FitProblem(Explore(opts)) 
    961     is_mac = "cocoa" in wx.version() 
    962     app = wx.App() 
    963     frame = AppFrame(parent=None, title="explore") 
     964    frame = AppFrame(parent=None, title="explore", size=(1000,700)) 
    964965    if not is_mac: frame.Show() 
    965966    frame.panel.set_model(model=problem) 
     
    967968    frame.panel.aui.Split(0, wx.TOP) 
    968969    if is_mac: frame.Show() 
    969     app.MainLoop() 
     970    # If running withing an app, start the main loop 
     971    if app: app.MainLoop() 
    970972 
    971973class Explore(object): 
Note: See TracChangeset for help on using the changeset viewer.