summaryrefslogtreecommitdiff
path: root/pkgs/still-awake
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-05-28 19:57:54 +0200
committerLinnnus <[email protected]>2025-05-28 19:57:54 +0200
commit58a76f688cb80b78cd05ed55abcf6ba95a26e812 (patch)
tree2b75305f08d7c48d50a09251e0089b01673a5f2a /pkgs/still-awake
parentdaeb923cca039152fe5a374b568a8b9f125e5cce (diff)
Upgrade to 25.05HEADmain
Diffstat (limited to 'pkgs/still-awake')
-rw-r--r--pkgs/still-awake/default.nix4
-rw-r--r--pkgs/still-awake/test.py8
2 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/still-awake/default.nix b/pkgs/still-awake/default.nix
index 4bcd3ca..a383896 100644
--- a/pkgs/still-awake/default.nix
+++ b/pkgs/still-awake/default.nix
@@ -1,10 +1,10 @@
{
stdenv,
- pypy3,
+ python3,
lib,
}: let
# Needs python interpreter with tkinter support.
- python3' = pypy3;
+ python3' = python3.withPackages (ps: [ps.tkinter]);
in
stdenv.mkDerivation {
pname = "still-awake";
diff --git a/pkgs/still-awake/test.py b/pkgs/still-awake/test.py
new file mode 100644
index 0000000..0e49d2d
--- /dev/null
+++ b/pkgs/still-awake/test.py
@@ -0,0 +1,8 @@
+from tkinter import *
+from tkinter import ttk
+root = Tk()
+frm = ttk.Frame(root, padding=10)
+frm.grid()
+ttk.Label(frm, text="Hello World!").grid(column=0, row=0)
+ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0)
+root.mainloop()