Coherence/src/core/widgets/drag_area_widget.py

36 lines
703 B
Python
Raw Normal View History

2023-04-02 18:01:23 +00:00
# Python imports
# Lib imports
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
# Application imports
class DragArea(Gtk.Fixed):
def __init__(self):
super(DragArea, self).__init__()
self._setup_styling()
self._setup_signals()
self._subscribe_to_events()
self._load_widgets()
def _setup_styling(self):
...
def _setup_signals(self):
self.connect("button-release-event", self.add_or_select_widget)
def _subscribe_to_events(self):
...
def _load_widgets(self):
...
def add_or_select_widget(self, widget = None, eve = None):
logger.debug(f"Add or selecting widget...")