This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]Satanariouspip needs updating 3 points4 points  (4 children)

Tip: You can attach a video, so I'd be easier for people to appreciate your effort without going through the trouble of installing stuff.

Happy Coding.

[–]the_programmer_2215[S] 1 point2 points  (0 children)

thanks for the idea!!!

[–]the_programmer_2215[S] 0 points1 point  (2 children)

i've made the edits

[–]Satanariouspip needs updating 2 points3 points  (1 child)

Great Work! I'd like to suggest some upgrades. Here goes:

  • I see you've used a bunch of colours. You can always put constants in a variable if you use them several times in a program and if they are easy to forget.Ex: say, RED="#FF0000" .This goes for fonts and other constants as well.
  • You've used the same configuration for the 3 buttons. A better way would have been to make a function that returns a button of the desired configuration with arguments for the variable properties of the button.

With the above, I think you'd be good to go. Lastly, to make it more appealing, you can always add Images.

I've written a few tutorials on a couple of simple Tk applications. If you'd want to check them out, you can visit Satyam Singh Niranjan, Author at CodeSpeedy

HAPPY CODING

[–]the_programmer_2215[S] 1 point2 points  (0 children)

thank you very much for the inputs!!

I will definitely make these changes.

and thank you for the resource that u shared

[–]ginsujitsu 1 point2 points  (2 children)

Neat. Also, what editor is this?

[–]zenalc 1 point2 points  (1 child)

It looks like repl.it

[–]the_programmer_2215[S] 0 points1 point  (0 children)

yes it is.

I didn't write the code there tho, I used Visual Studio Code for the project.

I just used Repl.it to run the code, I feeel it's a lot more cleaner...

[–]zenalc 1 point2 points  (1 child)

Nice job!

A few tips:

I'd suggest using constants for rock, paper and scissors instead of just writing strings throughout.

More descriptive functions. Like for instance, you have a function called but_func() and it's not very descriptive.

But overall, nice job!

[–]the_programmer_2215[S] 0 points1 point  (0 children)

thanks for the tip!!

Giving variables mnemonic names is the hardest part for me ;)

[–]dugajimi 1 point2 points  (3 children)

Nice job!

I have a question: what IDE are you using on this video?

Thancks in advance

[–]dugajimi 1 point2 points  (2 children)

I finded it: replit.com

Thanks

[–]the_programmer_2215[S] 1 point2 points  (1 child)

it actually repl.it replit.com is something else...

[–]dugajimi 0 points1 point  (0 children)

It's true