Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Nov 11, 2021
1 parent 43f026b commit 382fd3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ python3 setup.py install
As a **library**, you can use the `EasyTerm` class as follows:
```python
import easyterm
easyterm.EasyTerminal(
easyterm.EasyTerm(
cwd='/path',
command='/bin/bash',
env=[]
Expand Down
6 changes: 3 additions & 3 deletions easyterm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gi.require_version('Handy', '1')
gi.require_version('Vte', '2.91')
from gi.repository import Gtk, Gdk, GLib, Vte, Handy, Pango

CONF_NAME = "EasyTerminal"
CONF_NAME = "EasyTerm"
CONF_DEF_CWD = os.getcwd()
CONF_DEF_CMD = ["/bin/bash"]
CONF_FONT = "Source Code Pro Regular 12"
Expand Down Expand Up @@ -76,7 +76,7 @@ class MainWindow(Handy.ApplicationWindow):
settings.set_property("gtk-application-prefer-dark-theme", True)


class EasyTerminal(Gtk.Application):
class EasyTerm(Gtk.Application):
def __init__(self, cwd:str="", command:list=[], env:list=[], *args, **kwds):
super().__init__(*args, **kwds)
self.cwd = cwd
Expand All @@ -98,5 +98,5 @@ class EasyTerminal(Gtk.Application):


if __name__ == "__main__":
app = EasyTerminal()
app = EasyTerm()
app.run(None)

0 comments on commit 382fd3a

Please sign in to comment.