Added a requirement; added a debug handler
This commit is contained in:
parent
b78fac0aa5
commit
48bac7e791
|
@ -3,6 +3,7 @@ A template project for Python with Gtk applications.
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
* PyGObject (Gtk introspection library)
|
* 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)
|
* pyxdg (Desktop ".desktop" file parser)
|
||||||
* setproctitle (Define process title to search and kill more easily)
|
* setproctitle (Define process title to search and kill more easily)
|
||||||
* sqlmodel (SQL databases and is powered by Pydantic and SQLAlchemy)
|
* sqlmodel (SQL databases and is powered by Pydantic and SQLAlchemy)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
PyGObject
|
PyGObject
|
||||||
|
pygobject-stubs
|
||||||
pyxdg
|
pyxdg
|
||||||
setproctitle
|
setproctitle
|
||||||
sqlmodel
|
sqlmodel
|
|
@ -90,7 +90,7 @@ class Window(Gtk.ApplicationWindow):
|
||||||
if visual and screen.is_composited() and settings.config.make_transparent == 0:
|
if visual and screen.is_composited() and settings.config.make_transparent == 0:
|
||||||
self.set_visual(visual)
|
self.set_visual(visual)
|
||||||
self.set_app_paintable(True)
|
self.set_app_paintable(True)
|
||||||
self.connect("draw", self._area_draw)
|
# self.connect("draw", self._area_draw)
|
||||||
|
|
||||||
# bind css file
|
# bind css file
|
||||||
cssProvider = Gtk.CssProvider()
|
cssProvider = Gtk.CssProvider()
|
||||||
|
@ -132,4 +132,4 @@ class Window(Gtk.ApplicationWindow):
|
||||||
Gtk.main_quit()
|
Gtk.main_quit()
|
||||||
|
|
||||||
def main(self):
|
def main(self):
|
||||||
Gtk.main()
|
Gtk.main()
|
|
@ -37,6 +37,14 @@ def debug_signal_handler(signal, frame):
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ipdb
|
||||||
|
logger.debug("\n\nStarting IPDB debugger...\n\n")
|
||||||
|
ipdb.set_trace()
|
||||||
|
return
|
||||||
|
except Exception as ex:
|
||||||
|
...
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pdb
|
import pdb
|
||||||
logger.debug("\n\nStarting embedded PDB debugger...\n\n")
|
logger.debug("\n\nStarting embedded PDB debugger...\n\n")
|
||||||
|
|
Loading…
Reference in New Issue