本文整理汇总了Python中PyKDE4.kdecore.KAboutData.setProgramIconName方法的典型用法代码示例。如果您正苦于以下问题:Python KAboutData.setProgramIconName方法的具体用法?Python KAboutData.setProgramIconName怎么用?Python KAboutData.setProgramIconName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyKDE4.kdecore.KAboutData
的用法示例。
在下文中一共展示了KAboutData.setProgramIconName方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
def main():
app_name="danbooru_client"
catalog = "danbooru_client"
program_name = ki18n("Danbooru Client")
version = "1.0.0"
description = ki18n("A client for Danbooru sites.")
license = KAboutData.License_GPL
copyright = ki18n("(C) 2009 Luca Beltrame")
text = ki18n("Danbooru Client is a program to"
" access Danbooru image boards.")
home_page = u"http://www.dennogumi.org"
bug_email = "[email protected]"
about_data = KAboutData(app_name, catalog, program_name, version,
description, license, copyright, text, home_page,
bug_email)
about_data.setProgramIconName("internet-web-browser")
component_data = KComponentData(about_data)
component_data.setAboutData(about_data)
KCmdLineArgs.init(sys.argv, about_data)
app = KApplication()
window = mainwindow.MainWindow()
window.show()
app.exec_()
示例2: main
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
def main():
app_name = "vlc_snapper"
catalog = "danbooru_client"
program_name = ki18n("KDE VLC Snapper")
version = "0.1"
description = ki18n("A screenshot taker for video clips.")
license = KAboutData.License_GPL
copyright = ki18n("(C) 2011 Luca Beltrame")
text = ki18n("")
home_page = "http://www.dennogumi.org"
bug_email = "[email protected]"
about_data = KAboutData(
app_name, catalog, program_name, version, description, license, copyright, text, home_page, bug_email
)
about_data.setProgramIconName("internet-web-browser")
KCmdLineArgs.init(sys.argv, about_data)
app = KApplication()
dialog = capturewidget.CaptureDialog()
dialog.show()
app.lastWindowClosed.connect(dialog.deleteLater)
app.exec_()
示例3: __init__
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
def __init__(self):
aboutData = KAboutData(APP_NAME, CATALOG, PROGRAM_NAME, VERSION, DESCRIPTION,
LICENSE, COPYRIGHT, TEXT, HOMEPAGE, BUG_EMAIL)
aboutData.addAuthor(ki18n("Chris Dekter"), ki18n("Developer"), "[email protected]", "")
aboutData.addAuthor(ki18n("Sam Peterson"), ki18n("Original developer"), "[email protected]", "")
aboutData.setProgramIconName(common.ICON_FILE)
self.aboutData = aboutData
aboutData_py3 = KAboutData(APP_NAME, CATALOG, PROGRAM_NAME_PY3, VERSION, DESCRIPTION_PY3,
LICENSE, COPYRIGHT_PY3, TEXT, HOMEPAGE_PY3, BUG_EMAIL_PY3)
aboutData_py3.addAuthor(ki18n("GuoCi"), ki18n("Python 3 port maintainer"), "[email protected]", "")
aboutData_py3.addAuthor(ki18n("Chris Dekter"), ki18n("Developer"), "[email protected]", "")
aboutData_py3.addAuthor(ki18n("Sam Peterson"), ki18n("Original developer"), "[email protected]", "")
aboutData_py3.setProgramIconName(common.ICON_FILE)
self.aboutData_py3 = aboutData_py3
KCmdLineArgs.init(sys.argv, aboutData)
options = KCmdLineOptions()
options.add("l").add("verbose", ki18n("Enable verbose logging"))
options.add("c").add("configure", ki18n("Show the configuration window on startup"))
KCmdLineArgs.addCmdLineOptions(options)
args = KCmdLineArgs.parsedArgs()
self.app = KApplication()
try:
# Create configuration directory
if not os.path.exists(CONFIG_DIR):
os.makedirs(CONFIG_DIR)
# Initialise logger
rootLogger = logging.getLogger()
rootLogger.setLevel(logging.DEBUG)
if args.isSet("verbose"):
handler = logging.StreamHandler(sys.stdout)
else:
handler = logging.handlers.RotatingFileHandler(LOG_FILE,
maxBytes=MAX_LOG_SIZE, backupCount=MAX_LOG_COUNT)
handler.setLevel(logging.INFO)
handler.setFormatter(logging.Formatter(LOG_FORMAT))
rootLogger.addHandler(handler)
if self.__verifyNotRunning():
self.__createLockFile()
self.initialise(args.isSet("configure"))
except Exception as e:
self.show_error_dialog(i18n("Fatal error starting AutoKey.\n") + str(e))
logging.exception("Fatal error starting AutoKey: " + str(e))
sys.exit(1)
示例4: or
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
# PyKDE
from PyKDE4.kdecore import KAboutData, ki18n
# Application Data
appName = "display-settings"
modName = "displaysettings"
programName = ki18n("Display Settings")
version = "0.9.96"
description = ki18n("Display Configuration Tool")
license = KAboutData.License_GPL
copyright = ki18n("(c) 2009 TUBITAK/UEKAE")
text = ki18n(None)
homePage = "http://www.pardus.org.tr/eng/projects"
bugEmail = "[email protected]"
catalog = appName
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Author(s)
aboutData.addAuthor(ki18n("Fatih Aşıcı"), ki18n("Current Maintainer"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("preferences-desktop-display")
示例5: or
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
# PyKDE
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
# Application Data
appName = "system-manager"
modName = "systemmanager"
programName = ki18n("System Manager")
version = "0.9.7"
description = ki18n("System Manager")
license = KAboutData.License_GPL
copyright = ki18n("(c) 2009-2010 TUBITAK/UEKAE")
text = ki18n(None)
homePage = "http://www.pardus.org.tr/eng/projects"
bugEmail = "[email protected]"
catalog = appName
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Author(s)
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("Current Maintainer"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("preferences-other")
示例6: ki18n
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
# Application Data
PACKAGE = "Service Manager"
appName = "service-manager"
modName = "servicemanager"
version = "3.0.0"
homePage = "http://developer.pardus.org.tr/projects/service-manager"
bugEmail = "[email protected]"
icon = ("flag-yellow", "flag")
catalog = appName
if ctx.Pds.session == ctx.pds.Kde4:
# PyKDE4 Stuff
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
programName = ki18n(PACKAGE)
description = ki18n(PACKAGE)
license = KAboutData.License_GPL
copyright = ki18n("(c) 2009-2010 TUBITAK/UEKAE")
text = ki18n(None)
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Authors
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Current Maintainer"))
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("COMAR Author"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName(icon)
示例7: ki18n
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
#
# Please read the COPYING file.
#
PACKAGE = "Disk Manager"
# PyKDE
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
# Application Data
appName = "disk-manager"
modName = "diskmanager"
programName = ki18n("Disk Manager")
version = "3.0.0"
description = ki18n("Disk Manager")
license = KAboutData.License_GPL
copyright = ki18n("(c) 2006-2010 TUBITAK/UEKAE")
text = ki18n(None)
homePage = "http://www.pardus.org.tr/eng/projects"
bugEmail = "[email protected]"
catalog = appName
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Author(s)
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Current Maintainer"))
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("First Developer"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("drive-harddisk")
示例8: ki18n
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
#
# Package Manager Version String
version = "3.0.3"
PACKAGE = "Package Manager"
# PyKDE4 Imports
from PyKDE4.kdecore import ki18n, ki18nc, KAboutData
# Application Data
appName = "package-manager"
catalog = appName
programName = ki18n(PACKAGE)
description = ki18n(PACKAGE)
license = KAboutData.License_GPL
copyright = ki18n("(c) 2009-2010 TUBITAK/UEKAE")
text = ki18n(None)
homePage = "http://developer.pardus.org.tr/projects/package-manager"
bugEmail = "[email protected]"
aboutData = KAboutData(appName, catalog, programName, version,
description, license, copyright, text,
homePage, bugEmail)
# Authors
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Developer"))
aboutData.addAuthor(ki18n("Faik Uygur"), ki18n("First Author"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"),
ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
aboutData.setProgramIconName(":/data/package-manager.png")
示例9: DBusQtMainLoop
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
if not dbus.get_default_main_loop():
from dbus.mainloop.qt import DBusQtMainLoop
DBusQtMainLoop(set_as_default=True)
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
KCmdLineArgs.init(sys.argv, aboutData)
app = KApplication()
app.setQuitOnLastWindowClosed(False)
mw = MainWindow()
mw.show()
aboutData.setProgramIconName(":/icons/icons/manager.png")
aboutData.addAuthor(ki18n("Cihan Okyay"), ki18n("Current Maintainer"), "[email protected]")
def showw(event):
if event == QtGui.QSystemTrayIcon.Trigger:
if not mw.isVisible():
mw.show()
else:
mw.hide()
menu = QtGui.QMenu()
exitAction = QtGui.QAction(QtGui.QIcon(":/icons/icons/exit.png"), (u"Exit"), None)
connectAction = QtGui.QAction(QtGui.QIcon(":/icons/icons/ok.png"), (u"Connect"), None)
disconnectAction = QtGui.QAction(QtGui.QIcon(":/icons/icons/disconnet.png"), (u"Disconnect"), None)
示例10: ki18n
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
#
# PyKDE
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
PACKAGE = "User Manager"
# Application Data
appName = "user-manager"
modName = "usermanager"
programName = ki18n(PACKAGE)
version = "3.0.2"
description = ki18n(PACKAGE)
license = KAboutData.License_GPL
copyright = ki18n("(c) 2006-2010 TUBITAK/UEKAE")
text = ki18n(None)
homePage = "http://developer.pardus.org.tr/projects/user-manager"
bugEmail = "[email protected]"
catalog = appName
aboutData = KAboutData(
appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail
)
# Author(s)
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Current Maintainer"))
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("First Developer"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("system-users")
示例11: ki18n
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
import context as ctx
PACKAGE = "Boot Manager"
appName = "boot-manager"
version = "3.0.0"
homePage = "http://developer.pardus.org.tr/projects/boot-manager"
bugEmail = "[email protected]"
if ctx.Pds.session == ctx.pds.Kde4:
# PyKDE
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
# Application Data
programName = ki18n(PACKAGE)
description = ki18n(PACKAGE)
license = KAboutData.License_GPL
copyright = ki18n("(c) 2006-2011 TUBITAK/UEKAE")
text = ki18n(None)
catalog = appName
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Author(s)
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Current Maintainer"))
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("First Developer"))
aboutData.addAuthor(ki18n("Aydan Taşdemir"), ki18n("Pure Qt Support"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("computer")
示例12: ki18n
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
#
import context as ctx
PACKAGE = "Firewall Manager"
appName = "firewall-manager"
version = "3.0.0"
homePage = "http://developer.pardus.org.tr/projects/firewall-manager"
bugEmail = "[email protected]"
if ctx.Pds.session == ctx.pds.Kde4:
# PyKDE
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
# Application Data
modName = "firewallmanager"
programName = ki18n(PACKAGE)
description = ki18n(PACKAGE)
license = KAboutData.License_GPL
copyright = ki18n("(c) 2006-2010 TUBITAK/UEKAE")
text = ki18n(None)
catalog = appName
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Author(s)
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Current Maintainer"))
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("First Developer"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("security-high")
示例13: or
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
# PyKDE4 Stuff
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
# Application Data
appName = "network-manager"
modName = "networkmanager"
programName = ki18n("Network Manager")
version = "2.9.17"
description = ki18n("Network Manager")
license = KAboutData.License_GPL
copyright = ki18n("(c) 2009-2010 TUBITAK/UEKAE")
text = ki18n(None)
homePage = "http://www.pardus.org.tr/eng/projects"
bugEmail = "[email protected]"
catalog = appName
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Authors
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("Current Maintainer"))
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Developer"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("applications-internet")
示例14: ki18n
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setProgramIconName [as 别名]
appName = "service-manager"
version = "3.0.0"
if ctx.Pds.session == ctx.pds.Kde4:
from PyKDE4.kdecore import KAboutData, ki18n, ki18nc
PACKAGE = "Service Manager"
# Application Data
appName = "service-manager"
modName = "servicemanager"
programName = ki18n(PACKAGE)
version = "3.0.0"
description = ki18n(PACKAGE)
license = KAboutData.License_GPL
copyright = ki18n("(c) 2009-2010 TUBITAK/UEKAE")
text = ki18n(None)
homePage = "http://developer.pardus.org.tr/projects/service-manager"
bugEmail = "[email protected]"
catalog = appName
aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail)
# Authors
aboutData.addAuthor(ki18n("Gökmen Göksel"), ki18n("Current Maintainer"))
aboutData.addAuthor(ki18n("Bahadır Kandemir"), ki18n("COMAR Author"))
aboutData.setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"), ki18nc("EMAIL OF TRANSLATORS", "Your emails"))
# Use this if icon name is different than appName
aboutData.setProgramIconName("flag-yellow")