Project/ProjectProtocolsBrowser.py

changeset 5984
bc7ec03158fc
parent 5974
dfb291b5b620
child 6048
82ad8ec9548c
equal deleted inserted replaced
5978:cf64d523f233 5984:bc7ec03158fc
543 self.tr("Protocol Compilation"), 543 self.tr("Protocol Compilation"),
544 self.tr( 544 self.tr(
545 "The compilation of the protocol file was" 545 "The compilation of the protocol file was"
546 " successful.")) 546 " successful."))
547 else: 547 else:
548 if grpc:
549 icon = UI.PixmapCache.getPixmap("gRPC48.png")
550 else:
551 icon = UI.PixmapCache.getPixmap("protobuf48.png")
548 ui.showNotification( 552 ui.showNotification(
549 UI.PixmapCache.getPixmap("protobuf48.png"), 553 icon,
550 self.tr("Protocol Compilation"), 554 self.tr("Protocol Compilation"),
551 self.tr( 555 self.tr(
552 "The compilation of the protocol file was" 556 "The compilation of the protocol file was"
553 " successful.")) 557 " successful."))
554 else: 558 else:
557 self, 561 self,
558 self.tr("Protocol Compilation"), 562 self.tr("Protocol Compilation"),
559 self.tr( 563 self.tr(
560 "The compilation of the protocol file failed.")) 564 "The compilation of the protocol file failed."))
561 else: 565 else:
566 if grpc:
567 icon = UI.PixmapCache.getPixmap("gRPC48.png")
568 else:
569 icon = UI.PixmapCache.getPixmap("protobuf48.png")
562 ui.showNotification( 570 ui.showNotification(
563 UI.PixmapCache.getPixmap("protobuf48.png"), 571 icon,
564 self.tr("Protocol Compilation"), 572 self.tr("Protocol Compilation"),
565 self.tr( 573 self.tr(
566 "The compilation of the protocol file failed.")) 574 "The compilation of the protocol file failed."))
567 self.compileProc = None 575 self.compileProc = None
568 576

eric ide

mercurial