settings.py 文件源码

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

项目:games_nebula_goglib_scripts 作者: yancharkin 项目源码 文件源码
def create_download_window(self):

        self.download_window = Gtk.Window(
            title = _("Konung: Legends of the North"),
            type = Gtk.WindowType.TOPLEVEL,
            window_position = Gtk.WindowPosition.CENTER_ALWAYS,
            resizable = False,
            default_width = 360
            )
        self.download_window.connect('delete-event', self.quit_app)

        box = Gtk.Box(
            orientation = Gtk.Orientation.VERTICAL,
            margin_left = 10,
            margin_right = 10,
            margin_top = 10,
            margin_bottom = 10,
            spacing = 10
            )

        linkbutton_download = Gtk.LinkButton(
            label = _("Download resolution patch"),
            uri = link_patch
            )

        linkbutton_put = Gtk.LinkButton(
            label = _("Put it here"),
            uri = 'file://' + download_dir + '/_distr/konung_legend_of_the_north'
            )

        button_install = Gtk.Button(label=_("Install"))
        button_install.connect('clicked', self.cb_button_install)

        box.pack_start(linkbutton_download, True, True, 0)
        box.pack_start(linkbutton_put, True, True, 0)
        box.pack_start(button_install, True, True, 0)

        self.download_window.add(box)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号