UI/UserInterface.py

changeset 6188
5a6ae3be31e6
parent 6118
da9e08920e7c
child 6192
0fbc876d7468
equal deleted inserted replaced
6187:2cc7e3629784 6188:5a6ae3be31e6
3719 @param act reference to the action that was triggered (QAction) 3719 @param act reference to the action that was triggered (QAction)
3720 """ 3720 """
3721 name = act.data() 3721 name = act.data()
3722 if name: 3722 if name:
3723 if name == "__SHOW__": 3723 if name == "__SHOW__":
3724 for text, tb in list(self.__toolbars.values()): 3724 for _text, tb in self.__toolbars.values():
3725 tb.show() 3725 tb.show()
3726 if self.__menus["toolbars"].isTearOffMenuVisible(): 3726 if self.__menus["toolbars"].isTearOffMenuVisible():
3727 self.__menus["toolbars"].hideTearOffMenu() 3727 self.__menus["toolbars"].hideTearOffMenu()
3728 elif name == "__HIDE__": 3728 elif name == "__HIDE__":
3729 for text, tb in list(self.__toolbars.values()): 3729 for _text, tb in self.__toolbars.values():
3730 tb.hide() 3730 tb.hide()
3731 if self.__menus["toolbars"].isTearOffMenuVisible(): 3731 if self.__menus["toolbars"].isTearOffMenuVisible():
3732 self.__menus["toolbars"].hideTearOffMenu() 3732 self.__menus["toolbars"].hideTearOffMenu()
3733 else: 3733 else:
3734 tb = self.__toolbars[name][1] 3734 tb = self.__toolbars[name][1]
3745 @param act reference to the action that was triggered (QAction) 3745 @param act reference to the action that was triggered (QAction)
3746 """ 3746 """
3747 name = act.data() 3747 name = act.data()
3748 if name: 3748 if name:
3749 if name == "__SHOW__": 3749 if name == "__SHOW__":
3750 for text, tb in list(self.__toolbars.values()): 3750 for _text, tb in self.__toolbars.values():
3751 tb.show() 3751 tb.show()
3752 elif name == "__HIDE__": 3752 elif name == "__HIDE__":
3753 for text, tb in list(self.__toolbars.values()): 3753 for _text, tb in self.__toolbars.values():
3754 tb.hide() 3754 tb.hide()
3755 else: 3755 else:
3756 tb = self.__toolbars[name][1] 3756 tb = self.__toolbars[name][1]
3757 if act.isChecked(): 3757 if act.isChecked():
3758 tb.show() 3758 tb.show()
4947 Private slot to handle the readyReadStderr signal of a tool process. 4947 Private slot to handle the readyReadStderr signal of a tool process.
4948 """ 4948 """
4949 ioEncoding = Preferences.getSystem("IOEncoding") 4949 ioEncoding = Preferences.getSystem("IOEncoding")
4950 4950
4951 # loop through all running tool processes 4951 # loop through all running tool processes
4952 for program, toolProc, toolProcData in self.toolProcs: 4952 for program, toolProc, _toolProcData in self.toolProcs:
4953 toolProc.setReadChannel(QProcess.StandardError) 4953 toolProc.setReadChannel(QProcess.StandardError)
4954 4954
4955 while toolProc.canReadLine(): 4955 while toolProc.canReadLine():
4956 error = str(toolProc.readLine(), ioEncoding, 'replace') 4956 error = str(toolProc.readLine(), ioEncoding, 'replace')
4957 s = "{0} - {1}".format(program, error) 4957 s = "{0} - {1}".format(program, error)

eric ide

mercurial