HelpWindow.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:mama 作者: maateen 项目源码 文件源码
def __init__(self):
        #a  Gtk.AboutDialog
        self.aboutdialog = Gtk.AboutDialog()

        # lists of authors and documenters (will be used later)
        authors = ["Maksudur Rahman Maateen <http://maateen.me/>"]
        documenters = ["Maksudur Rahman Maateen <http://maateen.me/>"]

        # we fill in the aboutdialog
        self.aboutdialog.set_program_name("About Mama")
        self.aboutdialog.set_version("Version 0.1")
        self.aboutdialog.set_copyright("Maksudur Rahman Maateen \xa9 2016")
        self.aboutdialog.set_comments("The aim of this project is to let you "
                                      "use Microsoft powered Bing Speech "
                                      "Recognition API to control your Linux "
                                      "computer. The project is developed in "
                                      "Python3. For note, this is a fork of "
                                      "project google2ubuntu - <"
                                      "https://github.com/benoitfragit/google2ubuntu/>."
                                      " Thanks Franquet Benoit for your google2ubuntu.")
        self.aboutdialog.set_license_type (Gtk.License.GPL_3_0,)
        self.aboutdialog.set_website("https://maateen.github.io/mama/")
        self.aboutdialog.set_website_label("https://maateen.github.io/mama/")
        self.aboutdialog.set_authors(authors)
        self.aboutdialog.set_documenters(documenters)

        # Resetting the window title
        self.aboutdialog.set_title("About Mama")

        # to close the aboutdialog when "close" is clicked we connect the
        # "response" signal to on_close
        self.aboutdialog.connect("response", self.on_close)
        # show the aboutdialog
        self.aboutdialog.show()

    # destroy the aboutdialog
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号