Subversion Repositories basico

Rev

Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 74
Line 19... Line 19...
19
19
20
    def show(self, module, message, icon_name):
20
    def show(self, module, message, icon_name):
21
        if sys.platform == 'win32':
21
        if sys.platform == 'win32':
22
            # Windows does not support Notify
22
            # Windows does not support Notify
23
            return
23
            return
24
-
 
25
        icon = "dialog-%s" % icon_name # information | question | warning | error
-
 
26
        notification = Notify.Notification.new (module, message, icon)
-
 
27
        notification.show ()
-
 
-
 
24
        else:
-
 
25
            icon = "dialog-%s" % icon_name # information | question | warning | error
-
 
26
            notification = Notify.Notification.new (module, message, icon)
-
 
27
            notification.show()