Changeset 1582:32734bec7ddd in orange-bioinformatics


Ignore:
Timestamp:
02/24/12 14:52:32 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Show a warning with a download link if suds is not installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWKEGGPathwayBrowser.py

    r1579 r1582  
    308308         
    309309    def UpdateOrganismComboBox(self): 
     310        # First try to import suds 
     311        try: 
     312            import suds 
     313        except ImportError: 
     314            QMessageBox.warning(self, 
     315                "'suds' library required.", 
     316                '<p>Please install \ 
     317<a href="http://pypi.python.org/pypi/suds">suds</a> library \ 
     318to use KEGG Pathways widget.</p>' 
     319                ) 
     320             
    310321        try: 
    311322            genome = obiKEGG.KEGGGenome() 
Note: See TracChangeset for help on using the changeset viewer.