Changeset 11129:e0a45ac14bf5 in orange


Ignore:
Timestamp:
10/16/12 11:42:38 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed an obsolete import.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/main.py

    r11126 r11129  
    2323from Orange.OrangeCanvas import config 
    2424 
    25 from Orange.OrangeCanvas.registry import models 
     25from Orange.OrangeCanvas.registry import qt 
    2626from Orange.OrangeCanvas.registry import WidgetRegistry, set_global_registry 
    2727from Orange.OrangeCanvas.registry import cache 
     
    125125        reg_cache = None 
    126126 
    127     widget_discovery = models.QtWidgetDiscovery(cached_descriptions=reg_cache) 
    128  
    129     widget_registry = models.QtWidgetRegistry() 
     127    widget_discovery = qt.QtWidgetDiscovery(cached_descriptions=reg_cache) 
     128 
     129    widget_registry = qt.QtWidgetRegistry() 
    130130 
    131131    widget_discovery.found_category.connect( 
     
    161161    if options.no_discovery: 
    162162        widget_registry = cPickle.load(open(cache_filename, "rb")) 
    163         widget_registry = models.QtWidgetRegistry(widget_registry) 
     163        widget_registry = qt.QtWidgetRegistry(widget_registry) 
    164164    else: 
    165165        widget_discovery.run() 
Note: See TracChangeset for help on using the changeset viewer.