r/Python • u/Ro0t-set • Apr 23 '20
I Made This I made this clock using python and as GUI html, css, JS
39
u/Fissherin Apr 23 '20
What is python 's purpose here? What is it doing? Html css and js are doing the front. Is it acting as a local server?
33
u/Ro0t-set Apr 24 '20
the purpose of python is to provide the number of degrees to rotate the hands ... useless enough, i know ... hahahah
23
Apr 24 '20
That could easily have been done with js. But you know posting two subreddits ARE better than one. And you can extra flex.
1
9
2
368
u/Frogbeerr Apr 23 '20
I cringe at the off-centered hands
65
u/Shakaka88 Apr 23 '20
Thatโs all I see
64
u/beep_check Apr 23 '20
OP did say CSS... so...
23
28
6
8
u/callmelucky Apr 23 '20
The dot in the "centre" is off-centre on the clock face too (too far right). This is a fucking nighmare :D
-2
3
Apr 24 '20
[removed] โ view removed comment
3
u/maniakh Apr 24 '20
C'mon man you don't have to be a UX expert to center a dot. Like, that's too much LOL. Anyway, OP did do a good job on the functionality.
8
Apr 24 '20
[removed] โ view removed comment
5
u/Hour-Positive Apr 24 '20
No need for an existential crisis. Proper honest feedback is priceless and the biggest gift you can receive.
For every starting developer here: you will understand this. Giving critique requires effort and is a much bigger compliment than 'wow looks nice' or something similar.
2
Apr 24 '20
[removed] โ view removed comment
2
u/Hour-Positive Apr 24 '20
Yeah you got a point there. I think the quality and helpfulness of the critique, aka it being constructive, is essential. Then you are being intrisically encouraging. Paradoxically with that also comes less space for empty compliments.
6
2
u/John_Mansell Apr 24 '20
Dude. This is super cool and entertaining to watch. I love it.
The spinning outside of the clock makes a really soothing interface. You could have just had a plain circle and called it a day but you really went the extra mile.
Very cool.
Is the source on GitHub?
4
5
5
11
u/_blub Apr 24 '20
I donโt see where python needs to be here. just stick with vanilla HTML, JS, and CSS.
0
Apr 24 '20
[deleted]
5
Apr 24 '20
"just" use canvas? why? this can be done with a few lines of css and js. doing it with canvas will require many magnitudes more code
0
Apr 24 '20
[deleted]
3
Apr 24 '20
that seems irrational. why would you require more work for yourself and not leverage native browser features just to "eliminate" css?
also, who wants to eliminate css?
0
3
3
3
3
3
3
3
u/npeersab Apr 24 '20
nice
1
u/nice-scores Apr 25 '20
๐ท๐ฒ๐ฌ๐ฎ โ(๏พใฎ๏พโ)
Nice Leaderboard
1.
u/RepliesNiceat 6319 nices2.
u/Squidtoon99at 5441 nices3.
u/spiro29at 4916 nices...
12567.
u/npeersabat 7 nicesI AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS
3
3
3
u/deiwyy Apr 24 '20
Why python? like, you have js right?
4
u/mgazzola Apr 24 '20
Because Python is the best ever clean amazing wonderful perfect language ๐ค
1
u/deiwyy Apr 25 '20
I agree with your opinion I was just wondering if you could not use just js for this little project, what is python used here for?
2
1
1
1
1
1
1
1
1
1
1
u/Bruce_Fulton Apr 30 '20
i am new in programming can you please tell me how did you record you screen ?
-2
0
0
-2
Apr 23 '20
[removed] โ view removed comment
5
u/Ro0t-set Apr 23 '20 edited Apr 23 '20
yes, in fact if you read the previous comments I explain it is a simple test to learn a library, but that wanting the exact same project you could simply do in js
0
72
u/Ro0t-set Apr 23 '20
I know, the layout is not responsive ... the front end is boring
This is a very simple example of how to use Eel to create a python GUI using web scripts (html, css, js) ... In this case it would have been easier to do everything in javascript, but I wanted to have fun with this library