示例#1
0
 def aboutShow(self, obj=None, data=None):
     if not self.aboutDialog:
         from scal2.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,
         )
         ## add Donate button ## FIXME
         dialog.connect('delete-event', self.aboutHide)
         dialog.connect('response', self.aboutHide)
         #dialog.set_logo(gdk.pixbuf_new_from_file(ui.logo))
         #dialog.set_skip_taskbar_hint(True)
         self.aboutDialog = dialog
     openWindow(self.aboutDialog)
示例#2
0
	def plugAboutClicked(self, obj=None):
		from scal2.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.desc
			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
示例#3
0
 def aboutShow(self, obj=None, data=None):
     if not self.aboutDialog:
         from scal2.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,
         )
         ## add Donate button ## FIXME
         dialog.connect('delete-event', self.aboutHide)
         dialog.connect('response', self.aboutHide)
         #dialog.set_logo(gdk.pixbuf_new_from_file(ui.logo))
         #dialog.set_skip_taskbar_hint(True)
         self.aboutDialog = dialog
     openWindow(self.aboutDialog)