Skip to content

Commit ba0cc15

Browse files
committed
add logo
1 parent 1713e9c commit ba0cc15

9 files changed

Lines changed: 25 additions & 17 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Python Here
2-
===========
1+
PythonHere
2+
==========
33

44
.. start-badges
55
.. image:: https://img.shields.io/pypi/v/pythonhere.svg

buildozer.spec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[app]
22

33
# title of the application
4-
title = Python Here
4+
title = PythonHere
55

66
# package name
77
package.name = pythonhere
@@ -21,6 +21,12 @@ version.filename = %(source.dir)s/version_here.py
2121
orientation = all
2222
fullscreen = 0
2323

24+
# (str) Presplash of the application
25+
presplash.filename = %(source.dir)s/data/logo/logo-128.png
26+
27+
# (str) Icon of the application
28+
icon.filename = %(source.dir)s/data/logo/logo-128.png
29+
2430
# requirements of the app
2531
requirements =
2632
kivy==2.0.0,

pythonhere/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Python Here Jupyter magic."""
1+
"""PythonHere Jupyter magic."""
22
from herethere.magic import load_ipython_extension
33

44
from .magic_here import shortcuts # noqa

pythonhere/data/logo/logo-128.png

4.06 KB
Loading

pythonhere/data/logo/logo-32.png

1.22 KB
Loading

pythonhere/main.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Python Here app."""
1+
"""PythonHere app."""
22
import asyncio
33

44
from kivy.app import App
@@ -13,7 +13,7 @@
1313

1414
async def run_ssh_server(app):
1515
"""Start and run SSH server."""
16-
Logger.debug("Python Here: wait for %here settings")
16+
Logger.debug("PythonHere: wait for %here settings")
1717
try:
1818
await app.ssh_server_config_ready.wait()
1919
except asyncio.CancelledError:
@@ -30,24 +30,24 @@ async def run_ssh_server(app):
3030
server = await start_server(config, namespace=app.ssh_server_namespace)
3131
app.ssh_server_started.set()
3232
except Exception as exc:
33-
Logger.error("Python Here: SSH server start error")
33+
Logger.error("PythonHere: SSH server start error")
3434
Logger.exception(exc)
3535
raise
3636

3737
try:
3838
await server.wait_closed()
3939
except asyncio.CancelledError:
40-
Logger.info("Python Here: SSH server task canceled")
40+
Logger.info("PythonHere: SSH server task canceled")
4141
server.close()
4242
except Exception as exc:
43-
Logger.errror("Python Here: SSH server stop by exception")
43+
Logger.errror("PythonHere: SSH server stop by exception")
4444
Logger.exception(exc)
4545
raise
46-
Logger.info("Python Here: SSH server closed")
46+
Logger.info("PythonHere: SSH server closed")
4747

4848

4949
class PythonHereApp(App):
50-
"""Python Here main app."""
50+
"""PythonHere main app."""
5151

5252
def __init__(self):
5353
super().__init__()
@@ -56,6 +56,7 @@ def __init__(self):
5656
self.ssh_server_config_ready = asyncio.Event()
5757
self.ssh_server_started = asyncio.Event()
5858
self.ssh_server_namespace = {}
59+
self.icon = "data/logo/logo-32.png"
5960

6061
def build(self):
6162
"""Initialize application UI."""
@@ -84,9 +85,9 @@ async def async_run_app(self):
8485
"""Run app asynchronously."""
8586
try:
8687
await self.async_run(async_lib="asyncio")
87-
Logger.info("Python Here: async run completed")
88+
Logger.info("PythonHere: async run completed")
8889
except asyncio.CancelledError:
89-
Logger.info("Python Here: app main task canceled")
90+
Logger.info("PythonHere: app main task canceled")
9091
except Exception as exc:
9192
Logger.exception(exc)
9293

@@ -111,11 +112,11 @@ def handle_config_change(
111112

112113
def on_start(self):
113114
"""App start handler."""
114-
Logger.info("Python Here: app started")
115+
Logger.info("PythonHere: app started")
115116

116117
def on_stop(self):
117118
"""App stop handler."""
118-
Logger.info("Python Here: app stopped")
119+
Logger.info("PythonHere: app stopped")
119120

120121

121122
if __name__ == "__main__":

pythonhere/pythonhere.kv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RootLayout:
1818
ActionPrevious:
1919
title: ""
2020
with_previous: False
21+
app_icon: "data/logo/logo-32.png"
2122

2223
ScreenActionButton:
2324
id: open_here_action

pythonhere/ui_here/settings_here.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, *args, **kargs):
7878
Config.setdefaults(
7979
"pythonhere", {"username": "here", "password": "", "port": 8022}
8080
)
81-
self.add_json_panel("Python Here", Config, data=SETTINGS_HERE)
81+
self.add_json_panel("PythonHere", Config, data=SETTINGS_HERE)
8282
self.add_kivy_panel()
8383

8484
def get_pythonhere_config(self) -> Dict[str, Any]:

pythonhere/version_here.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
"""Python Here app version."""
1+
"""PythonHere app version."""
22

33
__version__ = "0.0.0"

0 commit comments

Comments
 (0)