Move to basic client/server structure.

This commit is contained in:
luxick
2018-03-03 14:36:41 +01:00
parent cb129eddd1
commit 8516650af4
25 changed files with 207 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
from gi.repository import Gtk
from dsst_gtk3 import dialogs
class VictoryHandlers:
"""Callback handlers for signals related to managing victory events"""
def __init__(self, app: 'gtk_ui.GtkUi'):
self.app = app
def do_add_victory(self, *_):
ep_id = self.app.get_selected_episode_id()
if not ep_id:
return
result = dialogs.show_edit_victory_dialog(self.app.ui, ep_id)
if result == Gtk.ResponseType.OK:
self.app.reload()