Ignore:
Timestamp:
11/14/13 15:43:37 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Return the QSpinBox from the 'spin' function when no container widget is created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWGUI.py

    r11572 r11762  
    223223    if checked: 
    224224        return wb, wa 
     225    elif b is widget: 
     226        wa.control = wa  # Backward compatibility 
     227        return wa 
    225228    else: 
    226229        return b 
     
    325328        return wb, wa 
    326329    else: 
    327         if b==widget: 
    328             wa.control = b.control # Backward compatibility 
     330        if b is widget: 
     331            wa.control = b.control  # Backward compatibility 
    329332            return wa 
    330333        else: 
Note: See TracChangeset for help on using the changeset viewer.