21 lines
391 B
Python
21 lines
391 B
Python
|
|
# Python imports
|
||
|
|
from dataclasses import dataclass, field
|
||
|
|
|
||
|
|
# Lib imports
|
||
|
|
import gi
|
||
|
|
gi.require_version('GtkSource', '4')
|
||
|
|
|
||
|
|
from gi.repository import GtkSource
|
||
|
|
|
||
|
|
# Application imports
|
||
|
|
from .code_event import CodeEvent
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
@dataclass
|
||
|
|
class UnregisterCommandEvent(CodeEvent):
|
||
|
|
command_name: str = ""
|
||
|
|
command: callable = None
|
||
|
|
binding_mode: str = ""
|
||
|
|
binding: str or list = ""
|