| 1143 | self.instancesWidget.update(self.project, self.selectedWidget) |
| 1144 | |
| 1145 | def menu_became_a_sponsor(self, widget): |
| 1146 | dialog = gui.GenericDialog( |
| 1147 | "Became a Sponsor", "This editor is made for you with passion. \nIt would be fantastic if you give a contribution, also a little one. ;-)", width="700px") |
| 1148 | |
| 1149 | sponsor_card = gui.Widget(_type='iframe', width=610, height=230) |
| 1150 | #<iframe src="https://github.com/sponsors/dddomodossola/card" title="Sponsor dddomodossola" height="225" width="600" style="border: 0;"></iframe> |
| 1151 | sponsor_card.attributes['src'] = "https://github.com/sponsors/dddomodossola/card" |
| 1152 | sponsor_card.attributes['title'] = "Sponsor dddomodossola" |
| 1153 | sponsor_card.attributes['height'] = "225" |
| 1154 | sponsor_card.attributes['width'] = "600" |
| 1155 | sponsor_card.style['border'] = "0" |
| 1156 | |
| 1157 | dialog.add_field("sponsor card", sponsor_card) |
| 1158 | dialog.children["message"].style['white-space'] = 'pre' |
| 1159 | dialog.cancel.style['display'] = 'none' |
| 1160 | dialog.conf.set_text("Back") |
| 1161 | dialog.show(self) |
| 1162 | |
| 1163 | def menu_project_config_clicked(self, widget): |
| 1164 | self.projectConfiguration.show(self) |