Added a requirement; added a debug handler
This commit is contained in:
		| @@ -3,6 +3,7 @@ A template project for Python with Gtk applications. | ||||
|  | ||||
| ### Requirements | ||||
| * PyGObject (Gtk introspection library) | ||||
| * pygobject-stubs (For actually getting pylsp or python-language-server to auto complete in LSPs. Do if GTK3 --no-cache-dir --config-settings=config=Gtk3,Gdk3,Soup2) | ||||
| * pyxdg (Desktop ".desktop" file parser) | ||||
| * setproctitle (Define process title to search and kill more easily) | ||||
| * sqlmodel (SQL databases and is powered by Pydantic and SQLAlchemy) | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| PyGObject | ||||
| pygobject-stubs | ||||
| pyxdg | ||||
| setproctitle | ||||
| sqlmodel | ||||
| @@ -90,7 +90,7 @@ class Window(Gtk.ApplicationWindow): | ||||
|         if visual and screen.is_composited() and settings.config.make_transparent == 0: | ||||
|             self.set_visual(visual) | ||||
|             self.set_app_paintable(True) | ||||
|             self.connect("draw", self._area_draw) | ||||
|             # self.connect("draw", self._area_draw) | ||||
|  | ||||
|         # bind css file | ||||
|         cssProvider  = Gtk.CssProvider() | ||||
|   | ||||
| @@ -37,6 +37,14 @@ def debug_signal_handler(signal, frame): | ||||
|     except Exception as ex: | ||||
|         ... | ||||
|  | ||||
|     try: | ||||
|         import ipdb | ||||
|         logger.debug("\n\nStarting IPDB debugger...\n\n") | ||||
|         ipdb.set_trace() | ||||
|         return | ||||
|     except Exception as ex: | ||||
|         ... | ||||
|  | ||||
|     try: | ||||
|         import pdb | ||||
|         logger.debug("\n\nStarting embedded PDB debugger...\n\n") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user