def create_co8_nc_window(self):
self.co8_nc_window = Gtk.Window(
title = _("The Temple of Elemental Evil"),
type = Gtk.WindowType.TOPLEVEL,
window_position = Gtk.WindowPosition.CENTER_ALWAYS,
resizable = False,
default_width = 480
)
self.co8_nc_window.connect('delete-event', self.hide_co8_nc_window)
box = Gtk.Box(
orientation = Gtk.Orientation.VERTICAL,
margin_top = 10,
margin_bottom = 10,
margin_left = 10,
margin_right = 10,
spacing = 10
)
linkbutton_download = Gtk.LinkButton(
label = _("Download 'Circle of Eight Mopdack New Content Edition'"),
uri = link_co8_modpack_nc,
)
linkbutton_put = Gtk.LinkButton(
label = _("Put it here"),
uri = 'file://' + download_dir + '/_distr/the_temple_of_elemental_evil',
)
button_install = Gtk.Button(label=_("Install"))
button_install.connect('clicked', self.cb_button_install_nc)
self.box_nc = Gtk.Box(
orientation = Gtk.Orientation.VERTICAL,
spacing = 10
)
self.box_nc.pack_start(linkbutton_download, True, True, 0)
self.box_nc.pack_start(linkbutton_put, True, True, 0)
self.box_nc.pack_start(button_install, True, True, 0)
self.progressbar_nc = Gtk.ProgressBar(
hexpand = True,
show_text = True,
text = _("Processing..."),
pulse_step = 0.1,
no_show_all = True
)
box.pack_start(self.box_nc, True, True, 0)
box.pack_start(self.progressbar_nc, True, True, 0)
self.co8_nc_window.add(box)
settings.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录