Skip to content

Commit 1c865e4

Browse files
author
mirkobrombin
committed
add class EasyTermLib without Gtk.Application
1 parent 8f2b6b2 commit 1c865e4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

easyterm/easyterm.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ def set_dark_theme(self):
9898
settings.set_property("gtk-application-prefer-dark-theme", True)
9999

100100

101+
class EasyTermLib:
102+
def __init__(self, cwd:str="", command:list=[], env:list=[], actions:list=[], *args, **kwds):
103+
self.window = MainWindow(cwd, command, env, actions)
104+
self.window.show_all()
105+
self.window.connect("delete-event", Gtk.main_quit)
106+
Gtk.main()
107+
101108
class EasyTerm(Gtk.Application):
102109
def __init__(self, cwd:str="", command:list=[], env:list=[], actions:list=[], *args, **kwds):
103110
super().__init__(*args, **kwds)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
description='An easy-to-bundle GTK terminal emulator',
66
author='Mirko brombin',
77
author_email='[email protected]',
8-
version='0.1.1',
8+
version='0.1.3',
99
packages=['easyterm'],
1010
scripts=['easyterm/easyterm.py'],
1111
url='https://github.com/bottlesdevs/EasyTerm',

0 commit comments

Comments
 (0)