本文整理汇总了Python中PyKDE4.kdecore.KAboutData.setHomepage方法的典型用法代码示例。如果您正苦于以下问题:Python KAboutData.setHomepage方法的具体用法?Python KAboutData.setHomepage怎么用?Python KAboutData.setHomepage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyKDE4.kdecore.KAboutData
的用法示例。
在下文中一共展示了KAboutData.setHomepage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setHomepage [as 别名]
def main():
about = KAboutData(
b'synaptiks', '', ki18n('synaptiks'), str(synaptiks.__version__),
ki18n('touchpad management and configuration application'),
KAboutData.License_BSD,
ki18n('Copyright (C) 2009, 2010 Sebastian Wiesner'))
about.addAuthor(ki18n('Sebastian Wiesner'), ki18n('Maintainer'),
'[email protected]')
about.addCredit(ki18n('Valentyn Pavliuchenko'),
ki18n('Debian packaging, russian translation, '
'bug reporting and testing'),
'[email protected]')
about.setHomepage('http://synaptiks.lunaryorn.de/')
about.setOrganizationDomain('synaptiks.lunaryorn.de')
KCmdLineArgs.init(sys.argv, about)
app = KApplication()
window = KMainWindow()
touchpad = Touchpad.find_first(Display.from_qt())
config = TouchpadConfiguration(touchpad)
config_widget = TouchpadConfigurationWidget(config)
config_widget.configurationChanged.connect(
partial(print, 'config changed?'))
window.setCentralWidget(config_widget)
window.show()
app.exec_()
示例2: make_about_data
# 需要导入模块: from PyKDE4.kdecore import KAboutData [as 别名]
# 或者: from PyKDE4.kdecore.KAboutData import setHomepage [as 别名]
def make_about_data(description):
"""
Create an about data object describing synaptiks.
``description`` is a :class:`~PyKDE4.kdecore.KLocalizedString` containing a
description for the specific part of synaptiks, the created about data
object should describe.
Return a :class:`~PyKDE4.kdecore.KAboutData` object with the given
``description``.
"""
about = KAboutData(
b'synaptiks', '', ki18nc('Program name', 'synaptiks'),
str(synaptiks.__version__), description, KAboutData.License_BSD,
ki18nc('About data copyright',
# KLocalizedString doesn't deal well with unicode
b'Copyright © 2009, 2010, 2011 Sebastian Wiesner'))
about.setCustomAuthorText(
ki18nc('custom author text plain text',
'Please report bugs to the issue tracker at %1').subs(
synaptiks.ISSUE_TRACKER_URL),
ki18nc('@info custom author text rich text',
'Please report bugs to the '
'<link url="%1">issue tracker</link>.').subs(
synaptiks.ISSUE_TRACKER_URL))
about.setHomepage(synaptiks.WEBSITE_URL)
about.setOrganizationDomain('lunaryorn.de')
about.setTranslator(ki18nc('NAME OF TRANSLATORS', 'Your names'),
ki18nc('EMAIL OF TRANSLATORS', 'Your emails'))
about.addAuthor(ki18nc('author name', 'Sebastian Wiesner'),
ki18nc('author task', 'Maintainer'),
'[email protected]')
about.addCredit(ki18nc('credit name', 'Valentyn Pavliuchenko'),
ki18nc('credit task', 'Debian packaging, russian '
'translation, bug reporting and testing'),
'[email protected]')
return about