Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RichTextEditor
#9
replace the line self.bgAct = .... with:

		self.bgAct = QAction("change Background Color",self,  triggered=self.changeBGColor)
		self.bgAct.setStatusTip("change Background Color")
		self.bgAct.setIcon(QIcon.fromTheme("preferences-color-symbolic"))
that makes it working on python 2 for me.
Reply


Messages In This Thread
RichTextEditor - by Axel_Erfurt - Jan-09-2018, 06:56 PM
RE: RichTextEditor - by Gribouillis - Jan-09-2018, 07:18 PM
RE: RichTextEditor - by Axel_Erfurt - Jan-09-2018, 07:24 PM
RE: RichTextEditor - by Gribouillis - Jan-09-2018, 07:26 PM
RE: RichTextEditor - by Axel_Erfurt - Jan-09-2018, 07:35 PM
RE: RichTextEditor - by Gribouillis - Jan-09-2018, 08:31 PM
RE: RichTextEditor - by Axel_Erfurt - Jan-09-2018, 09:06 PM
RE: RichTextEditor - by Gribouillis - Jan-09-2018, 09:17 PM
RE: RichTextEditor - by Axel_Erfurt - Jan-09-2018, 09:50 PM
RE: RichTextEditor - by Gribouillis - Jan-09-2018, 11:00 PM
RE: RichTextEditor - by Axel_Erfurt - Jan-10-2018, 05:58 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020