mirror of
https://github.com/Death916/deathclock.git
synced 2026-04-10 03:04:40 -07:00
started gui
This commit is contained in:
parent
79efa507c8
commit
343b76948c
2 changed files with 206 additions and 24 deletions
|
|
@ -1,36 +1,43 @@
|
|||
#deathclock
|
||||
import datetime
|
||||
import time
|
||||
|
||||
def main():
|
||||
|
||||
class clock():
|
||||
|
||||
def time_and_date():
|
||||
print(time.asctime())
|
||||
|
||||
def alarm():
|
||||
alarm_time = input("what time should the alarm be set?")
|
||||
import dearpygui.dearpygui as dpg
|
||||
|
||||
|
||||
def ring():
|
||||
pass
|
||||
class clock():
|
||||
|
||||
def time_and_date(self):
|
||||
print(time.asctime())
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class weather():
|
||||
def map():
|
||||
|
||||
return
|
||||
|
||||
def cur_weather():
|
||||
def alarm(self):
|
||||
alarm_time = None
|
||||
|
||||
def ring():
|
||||
pass
|
||||
|
||||
class gui():
|
||||
|
||||
class weather():
|
||||
def map(self):
|
||||
return
|
||||
|
||||
def cur_weather(self):
|
||||
pass
|
||||
|
||||
|
||||
class gui():
|
||||
def show_time(self):
|
||||
|
||||
with dpg.window(label="time"):
|
||||
dpg.add_text(time.asctime())
|
||||
dpg.start_dearpygui()
|
||||
|
||||
|
||||
def main():
|
||||
gui1 = gui()
|
||||
gui1.show_time()
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
|
|
|
|||
175
poetry.lock
generated
Normal file
175
poetry.lock
generated
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
[[package]]
|
||||
name = "atomicwrites"
|
||||
version = "1.4.0"
|
||||
description = "Atomic file writes."
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
|
||||
|
||||
[[package]]
|
||||
name = "attrs"
|
||||
version = "21.2.0"
|
||||
description = "Classes Without Boilerplate"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
|
||||
|
||||
[package.extras]
|
||||
dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"]
|
||||
docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"]
|
||||
tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"]
|
||||
tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"]
|
||||
|
||||
[[package]]
|
||||
name = "colorama"
|
||||
version = "0.4.4"
|
||||
description = "Cross-platform colored terminal text."
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
|
||||
|
||||
[[package]]
|
||||
name = "dearpygui"
|
||||
version = "0.8.64"
|
||||
description = "DearPyGui: A simple Python GUI Toolkit"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.6"
|
||||
|
||||
[[package]]
|
||||
name = "more-itertools"
|
||||
version = "8.10.0"
|
||||
description = "More routines for operating on iterables, beyond itertools"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=3.5"
|
||||
|
||||
[[package]]
|
||||
name = "packaging"
|
||||
version = "21.0"
|
||||
description = "Core utilities for Python packages"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=3.6"
|
||||
|
||||
[package.dependencies]
|
||||
pyparsing = ">=2.0.2"
|
||||
|
||||
[[package]]
|
||||
name = "pluggy"
|
||||
version = "0.13.1"
|
||||
description = "plugin and hook calling mechanisms for python"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
|
||||
|
||||
[package.extras]
|
||||
dev = ["pre-commit", "tox"]
|
||||
|
||||
[[package]]
|
||||
name = "py"
|
||||
version = "1.10.0"
|
||||
description = "library with cross-python path, ini-parsing, io, code, log facilities"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
|
||||
|
||||
[[package]]
|
||||
name = "pyparsing"
|
||||
version = "2.4.7"
|
||||
description = "Python parsing module"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
|
||||
|
||||
[[package]]
|
||||
name = "pytest"
|
||||
version = "5.4.3"
|
||||
description = "pytest: simple powerful testing with Python"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=3.5"
|
||||
|
||||
[package.dependencies]
|
||||
atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""}
|
||||
attrs = ">=17.4.0"
|
||||
colorama = {version = "*", markers = "sys_platform == \"win32\""}
|
||||
more-itertools = ">=4.0.0"
|
||||
packaging = "*"
|
||||
pluggy = ">=0.12,<1.0"
|
||||
py = ">=1.5.0"
|
||||
wcwidth = "*"
|
||||
|
||||
[package.extras]
|
||||
checkqa-mypy = ["mypy (==v0.761)"]
|
||||
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"]
|
||||
|
||||
[[package]]
|
||||
name = "wcwidth"
|
||||
version = "0.2.5"
|
||||
description = "Measures the displayed width of unicode strings in a terminal"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.9"
|
||||
content-hash = "3b548b01b7791472f14653c99cc79066b1cdf511a22f685b1f1992c53f2d692e"
|
||||
|
||||
[metadata.files]
|
||||
atomicwrites = [
|
||||
{file = "atomicwrites-1.4.0-py2.py3-none-any.whl", hash = "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197"},
|
||||
{file = "atomicwrites-1.4.0.tar.gz", hash = "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"},
|
||||
]
|
||||
attrs = [
|
||||
{file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"},
|
||||
{file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"},
|
||||
]
|
||||
colorama = [
|
||||
{file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"},
|
||||
{file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"},
|
||||
]
|
||||
dearpygui = [
|
||||
{file = "dearpygui-0.8.64-cp36-cp36m-macosx_10_6_x86_64.whl", hash = "sha256:b77e8d0da5118f083357c8619c5333979effb924a37777e6ebbcdb53a48e65f9"},
|
||||
{file = "dearpygui-0.8.64-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:10a2e3beb3d1e2130c2d840a0b647c65e1fba7dfb12d8efd08a1f45af9574659"},
|
||||
{file = "dearpygui-0.8.64-cp36-cp36m-win_amd64.whl", hash = "sha256:1f4123f4dbff3dcef470ad1acd5423fdf29edfb888ab385ac16f16ece7a99f20"},
|
||||
{file = "dearpygui-0.8.64-cp37-cp37m-linux_armv7l.whl", hash = "sha256:b4315cf7761cdd81d850406fb18f419176a467c724e128e251d2170766ab4bcf"},
|
||||
{file = "dearpygui-0.8.64-cp37-cp37m-macosx_10_6_x86_64.whl", hash = "sha256:9ee0319a0aa1a0b83641b87b4bbe978a87aa4cf9af97edb9d5ba2519925f6391"},
|
||||
{file = "dearpygui-0.8.64-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:41bb04c77f7a2284d94493645a952871664263dd23b1934d0184fdfa1090e357"},
|
||||
{file = "dearpygui-0.8.64-cp37-cp37m-win_amd64.whl", hash = "sha256:cfab5a208a4e1a60151326508f625dc75c8353acfe83c186331adc92e77c59dd"},
|
||||
{file = "dearpygui-0.8.64-cp38-cp38-macosx_10_6_x86_64.whl", hash = "sha256:a95f1d8fe95197ae2d95969ba09a0b9fdcc7106fe3087553520d93f50b050bea"},
|
||||
{file = "dearpygui-0.8.64-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:916cda989267ec7e58bed0f80fb6abdd53e87d954a79d2a16443776b8b9b1dd0"},
|
||||
{file = "dearpygui-0.8.64-cp38-cp38-win_amd64.whl", hash = "sha256:30bce67f02e0729edbeb664a385efeb64f77aa5b0dd12e02061ec0efcb6c6748"},
|
||||
{file = "dearpygui-0.8.64-cp39-cp39-macosx_10_6_x86_64.whl", hash = "sha256:888f5ff2d0414c331a409eea6d0e8ff20249186a8d3ac0da4fd84d643f8e9452"},
|
||||
{file = "dearpygui-0.8.64-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:dd14c94767163e0c6a08415166c86c18930ba3783f61dcd354b521fcf454dee0"},
|
||||
{file = "dearpygui-0.8.64-cp39-cp39-win_amd64.whl", hash = "sha256:6e4b2ce3fc97f5e1776589769e4ad68e950a158964ad6289d586119b00192dbc"},
|
||||
]
|
||||
more-itertools = [
|
||||
{file = "more-itertools-8.10.0.tar.gz", hash = "sha256:1debcabeb1df793814859d64a81ad7cb10504c24349368ccf214c664c474f41f"},
|
||||
{file = "more_itertools-8.10.0-py3-none-any.whl", hash = "sha256:56ddac45541718ba332db05f464bebfb0768110111affd27f66e0051f276fa43"},
|
||||
]
|
||||
packaging = [
|
||||
{file = "packaging-21.0-py3-none-any.whl", hash = "sha256:c86254f9220d55e31cc94d69bade760f0847da8000def4dfe1c6b872fd14ff14"},
|
||||
{file = "packaging-21.0.tar.gz", hash = "sha256:7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7"},
|
||||
]
|
||||
pluggy = [
|
||||
{file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"},
|
||||
{file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"},
|
||||
]
|
||||
py = [
|
||||
{file = "py-1.10.0-py2.py3-none-any.whl", hash = "sha256:3b80836aa6d1feeaa108e046da6423ab8f6ceda6468545ae8d02d9d58d18818a"},
|
||||
{file = "py-1.10.0.tar.gz", hash = "sha256:21b81bda15b66ef5e1a777a21c4dcd9c20ad3efd0b3f817e7a809035269e1bd3"},
|
||||
]
|
||||
pyparsing = [
|
||||
{file = "pyparsing-2.4.7-py2.py3-none-any.whl", hash = "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b"},
|
||||
{file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"},
|
||||
]
|
||||
pytest = [
|
||||
{file = "pytest-5.4.3-py3-none-any.whl", hash = "sha256:5c0db86b698e8f170ba4582a492248919255fcd4c79b1ee64ace34301fb589a1"},
|
||||
{file = "pytest-5.4.3.tar.gz", hash = "sha256:7979331bfcba207414f5e1263b5a0f8f521d0f457318836a7355531ed1a4c7d8"},
|
||||
]
|
||||
wcwidth = [
|
||||
{file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"},
|
||||
{file = "wcwidth-0.2.5.tar.gz", hash = "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"},
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue