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)
settings.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录