Ejemplo n.º 1
0
	def aboutShow(self, obj=None, data=None):
		if not self.aboutDialog:
			from scal3.ui_gtk.about import AboutDialog
			with open(
				join(rootDir, "authors-dialog"),
				encoding="utf-8",
			) as authorsFile:
				authors = authorsFile.read().splitlines()
			dialog = AboutDialog(
				name=core.APP_DESC,
				version=core.VERSION,
				title=_("About ") + core.APP_DESC,
				authors=[
					_(author) for author in authors
				],
				comments=core.aboutText,
				license=core.licenseText,
				website=core.homePage,
				parent=self,
			)
			# add Donate button, FIXME
			dialog.connect("delete-event", self.aboutHide)
			dialog.connect("response", self.aboutHide)
			#dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file(ui.logo))
			#dialog.set_skip_taskbar_hint(True)
			self.aboutDialog = dialog
		openWindow(self.aboutDialog)
Ejemplo n.º 2
0
 def open_about(self):
     about = AboutDialog(
         name=self.title,
         title=_("About") + " " + self.title,
         authors=self.authors,
         comments=self.about,
     )
     about.connect("delete-event", lambda w, e: about.destroy())
     #about.connect("response", lambda w: about.hide())
     #about.set_skip_taskbar_hint(True)
     about.run()
     about.destroy()
Ejemplo n.º 3
0
    def plugAboutClicked(self, obj=None):
        from scal3.ui_gtk.about import AboutDialog

        cur = self.plugTreeview.get_cursor()[0]
        if cur == None:
            return
        i = cur[0]
        j = self.plugTreestore[i][0]
        plug = core.allPlugList[j]
        if hasattr(plug, "open_about"):
            return plug.open_about()
        if plug.about == None:
            return
        about = AboutDialog(
            name="",  ## FIXME
            title=_("About Plugin"),  ## _('About ')+plug.title
            authors=plug.authors,
            comments=plug.about,
        )
        about.set_transient_for(self)
        about.connect("delete-event", lambda w, e: w.destroy())
        about.connect("response", lambda w, e: w.destroy())
        # about.set_resizable(True)
        # about.vbox.show_all()## OR about.vbox.show_all() ; about.run()
        openWindow(about)  ## FIXME
Ejemplo n.º 4
0
	def open_about(self):
		about = AboutDialog(
			name=self.title,
			title=_("About") + " " + self.title,
			authors=self.authors,
			comments=self.about,
		)
		about.connect("delete-event", lambda w, e: about.destroy())
		#about.connect("response", lambda w: about.hide())
		#about.set_skip_taskbar_hint(True)
		about.run()
		about.destroy()
Ejemplo n.º 5
0
 def aboutShow(self, obj=None, data=None):
     if not self.aboutDialog:
         from scal3.ui_gtk.about import AboutDialog
         dialog = AboutDialog(
             name=core.APP_DESC,
             version=core.VERSION,
             title=_('About ')+core.APP_DESC,
             authors=[_(line) for line in open(join(rootDir, 'authors-dialog')).read().splitlines()],
             comments=core.aboutText,
             license=core.licenseText,
             website=core.homePage,
             parent=self,
         )
         ## add Donate button ## FIXME
         dialog.connect('delete-event', self.aboutHide)
         dialog.connect('response', self.aboutHide)
         #dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file(ui.logo))
         #dialog.set_skip_taskbar_hint(True)
         self.aboutDialog = dialog
     openWindow(self.aboutDialog)
Ejemplo n.º 6
0
	def aboutShow(self, obj=None, data=None):
		if not self.aboutDialog:
			from scal3.ui_gtk.about import AboutDialog
			with open(
				join(rootDir, "authors-dialog"),
				encoding="utf-8",
			) as authorsFile:
				authors = authorsFile.read().splitlines()
			dialog = AboutDialog(
				name=core.APP_DESC,
				version=core.VERSION,
				title=_("About ") + core.APP_DESC,
				authors=[
					_(author) for author in authors
				],
				comments=core.aboutText,
				license=core.licenseText,
				website=core.homePage,
				transient_for=self,
			)
			# add Donate button, FIXME
			dialog.connect("delete-event", self.aboutHide)
			dialog.connect("response", self.aboutHide)
			#dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file(ui.logo))
			#dialog.set_skip_taskbar_hint(True)
			self.aboutDialog = dialog
		openWindow(self.aboutDialog)
Ejemplo n.º 7
0
 def plugAboutClicked(self, obj=None):
     from scal3.ui_gtk.about import AboutDialog
     cur = self.plugTreeview.get_cursor()[0]
     if cur is None:
         return
     i = cur[0]
     j = self.plugTreestore[i][0]
     plug = core.allPlugList[j]
     if hasattr(plug, "open_about"):
         return plug.open_about()
     if plug.about is None:
         return
     about = AboutDialog(
         name="",  ## FIXME
         title=_("About Plugin"),  # _("About ") + plug.title
         authors=plug.authors,
         comments=plug.about,
     )
     about.set_transient_for(self)
     about.connect("delete-event", lambda w, e: w.destroy())
     about.connect("response", lambda w, e: w.destroy())
     #about.set_resizable(True)
     #about.vbox.show_all()## OR about.vbox.show_all() ; about.run()
     openWindow(about)  ## FIXME
Ejemplo n.º 8
0
	def aboutShow(self, obj=None, data=None):
		if not self.aboutDialog:
			from scal3.ui_gtk.about import AboutDialog
			dialog = AboutDialog(
				name=core.APP_DESC,
				version=core.VERSION,
				title=_('About ')+core.APP_DESC,
				authors=[_(line) for line in open(join(rootDir, 'authors-dialog')).read().splitlines()],
				comments=core.aboutText,
				license=core.licenseText,
				website=core.homePage,
				parent=self,
			)
			## add Donate button ## FIXME
			dialog.connect('delete-event', self.aboutHide)
			dialog.connect('response', self.aboutHide)
			#dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file(ui.logo))
			#dialog.set_skip_taskbar_hint(True)
			self.aboutDialog = dialog
		openWindow(self.aboutDialog)