Repository URL to install this package:
|
Version:
0.5.7.1 ▾
|
# Standard Library
from gettext import gettext as _
# Lutris Modules
from lutris.gui.config import DIALOG_HEIGHT, DIALOG_WIDTH
from lutris.gui.config.common import GameDialogCommon
from lutris.gui.dialogs import Dialog
class EditGameConfigDialog(Dialog, GameDialogCommon):
"""Game config edit dialog."""
def __init__(self, parent, game):
super().__init__(_("Configure %s") % game.name, parent=parent)
self.game = game
self.lutris_config = game.config
self.slug = game.slug
self.runner_name = game.runner_name
self.set_default_size(DIALOG_WIDTH, DIALOG_HEIGHT)
self.build_notebook()
self.build_tabs("game")
self.build_action_area(self.on_save)
self.connect("delete-event", self.on_cancel_clicked)
self.show_all()