Skip to content

Commit

Permalink
add class EasyTermLib without Gtk.Application
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Nov 22, 2021
1 parent 8f2b6b2 commit 1c865e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions easyterm/easyterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ def set_dark_theme(self):
settings.set_property("gtk-application-prefer-dark-theme", True)


class EasyTermLib:
def __init__(self, cwd:str="", command:list=[], env:list=[], actions:list=[], *args, **kwds):
self.window = MainWindow(cwd, command, env, actions)
self.window.show_all()
self.window.connect("delete-event", Gtk.main_quit)
Gtk.main()

class EasyTerm(Gtk.Application):
def __init__(self, cwd:str="", command:list=[], env:list=[], actions:list=[], *args, **kwds):
super().__init__(*args, **kwds)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
description='An easy-to-bundle GTK terminal emulator',
author='Mirko brombin',
author_email='[email protected]',
version='0.1.1',
version='0.1.3',
packages=['easyterm'],
scripts=['easyterm/easyterm.py'],
url='https://github.com/bottlesdevs/EasyTerm',
Expand Down

0 comments on commit 1c865e4

Please sign in to comment.