Skip to content

Commit 84a5d72

Browse files
author
Henry Rachootin
committed
\'initial\' commit. Added all functionallity of Jes, excluding movies.
0 parents  commit 84a5d72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5643
-0
lines changed

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>mediapy</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.python.pydev.PyDevBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.python.pydev.pythonNature</nature>
16+
</natures>
17+
</projectDescription>

.pydevproject

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?eclipse-pydev version="1.0"?><pydev_project>
3+
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
4+
<path>/${PROJECT_DIR_NAME}</path>
5+
<path>/${PROJECT_DIR_NAME}/src</path>
6+
</pydev_pathproperty>
7+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
8+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Enthought</pydev_property>
9+
</pydev_project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
eclipse.preferences.version=1
2+
encoding//synth/pysynth.py=latin1
3+
encoding//synth/pysynth_b.py=latin1
4+
encoding//synth/pysynth_e.py=latin1
5+
encoding//synth/pysynth_s.py=latin1

images/endLeft.gif

934 Bytes
Loading

images/endRight.gif

935 Bytes
Loading

images/jesicon.gif

2.94 KB
Loading

images/jesicon.ico

5.56 KB
Binary file not shown.

images/leftArrow.gif

905 Bytes
Loading

images/rightArrow.gif

907 Bytes
Loading

monospace/Credit.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hack by Christopher Simpkins (C) 2015 Christopher Simpkins, used in public domain.

monospace/Hack-Bold.ttf

84.7 KB
Binary file not shown.

monospace/Hack-Oblique.ttf

102 KB
Binary file not shown.

monospace/Hack-Regular.ttf

91.7 KB
Binary file not shown.

sans-serif/Arimo-Bold.ttf

429 KB
Binary file not shown.

sans-serif/Arimo-Italic.ttf

431 KB
Binary file not shown.

sans-serif/Arimo-Regular.ttf

427 KB
Binary file not shown.

sans-serif/Credit.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Arimo by Steve Matteson used in the public domain.

serif/OldStandard-Bold.ttf

64.4 KB
Binary file not shown.

serif/OldStandard-Italic.ttf

64.3 KB
Binary file not shown.

serif/OldStandard-Regular.ttf

63.3 KB
Binary file not shown.

src/jes.py

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This is not really what I expect jes to look like,
2+
# but tkinter needs a root node, and it needs for everything else
3+
# to be run after the root is set up. Specifically,
4+
# in order for a new window to be created, it needs to be
5+
# created from within a tkinter thread. Here we get into a tkinter
6+
# thread using the Tk.after function, which allows a callback
7+
# to be immediately inserted into a tkinter thread.
8+
9+
from Tkinter import Tk
10+
from ttk import Style
11+
import runpy
12+
import mymedia
13+
import threading
14+
import os
15+
import sys
16+
17+
def program():
18+
userThread = threading.Thread(target = runpy.run_path, args = [os.path.join("src","test.py")])
19+
userThread.start()
20+
21+
22+
root = Tk()
23+
root.title("JES no longer stands for anything")
24+
root.style = Style()
25+
26+
#feel free to select a better theme on your system than default
27+
if sys.platform == 'win32':
28+
root.style.theme_use("xpnative")
29+
else:
30+
root.style.theme_use("default")
31+
32+
33+
#style things to make it look a bit more like JES
34+
root.style = Style()
35+
root.style.configure("TButton", padding = (0,3,0,3),
36+
font = ('Default',10))
37+
root.style.configure("TLabel", font = ('Default', 10))
38+
root.iconbitmap(default=os.path.join("images","jesicon.ico"))
39+
40+
41+
mymedia.setRoot(root)
42+
root.after(0, program)
43+
root.mainloop()
44+
os._exit(0)

0 commit comments

Comments
 (0)