Commits

Aleš Erjavec committed c8297ae

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

  • Participants
  • Parent commits 6b3e27b

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/OWGUI.py

 
     if checked:
         return wb, wa
+    elif b is widget:
+        wa.control = wa  # Backward compatibility
+        return wa
     else:
         return b
 
     if checked:
         return wb, wa
     else:
-        if b==widget:
-            wa.control = b.control # Backward compatibility
+        if b is widget:
+            wa.control = b.control  # Backward compatibility
             return wa
         else:
             return b