Data loading over socket.
This commit is contained in:
20
dsst/dsst_gtk3/handlers/death_handlers.py
Normal file
20
dsst/dsst_gtk3/handlers/death_handlers.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from gi.repository import Gtk
|
||||
|
||||
from dsst_gtk3 import dialogs
|
||||
|
||||
|
||||
class DeathHandlers:
|
||||
"""Callback handlers for signals related to managing death events"""
|
||||
def __init__(self, app: 'gtk_ui.GtkUi'):
|
||||
self.app = app
|
||||
|
||||
def do_add_death(self, *_):
|
||||
ep_id = self.app.get_selected_episode_id()
|
||||
if not ep_id:
|
||||
return
|
||||
result = dialogs.show_edit_death_dialog(self.app.ui, ep_id)
|
||||
if result == Gtk.ResponseType.OK:
|
||||
self.app.reload()
|
||||
|
||||
def on_penalty_drink_changed(self, _, path, text):
|
||||
self.app.ui.get_object('player_penalties_store')[path][2] = text
|
||||
Reference in New Issue
Block a user