Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "tkinter"
-
So I created this really cool messaging program for my CS class in high school. Though when I say for - I mean for the students which were bored when the teacher told us how to "resize images in Word".
I used python and tkinter to create it all, and didn't even need to touch sockets. (Mostly because I didn't know how to use them back then, but also because I kept the messages in a file on the school nas.)
Anyway, the program worked and we used it every week, with me listening to suggestions and improving it each week. I even managed to create a sort of notification system.
But sadly, my teacher found out about it and shut it down.
Have you ever had a similar experience?9 -
When I was about 10 I tried to make a basic midi sequencer/synthesiser using just the python standard library.
The only sound production there was was winsound.beep, which played a sine wave at the frequency given.
I realised that if I put enough really short beeps together I could make some mildly convincing instruments - I remember an electric piano, acoustic guitar, some kind of bass synth, and maybe more?
Then I put them together to make a song. The problem was though that you can't play multiple notes together as winsound.beep was blocking (though I didn't understand that at the time).
I had no knowledge of threading or async so I opened multiple python interpreter instances to play multiple channels. That's how I learnt about command-line arguments!
But I really struggled to get the sounds to be in time because python is not exactly rapid.
I made a kind of note sequencer using a library called easygui, based on tkinter (TCL wrapper), and I remember being told off at school for bringing in a usb stick with the exe of my program that I made with py2exe.
So many old technologies and fond memories...2 -
I got devRant working in python using only the standard libraries
But tkinter is an awful, hellish library that only supports gifs. But at least it runs native on raspberry pi10 -
Python is a fucking joke. "Readability" disguised as 150+ magic methods and values. Virtual environments to hide shitty dependency management. Strings that may or may not act as comments. No correlation between package and module names - install Pillow; import PIL. **kwargs instead of options=dict(), because why separate function arguments from arbitrary extra data? And finally, the only way to have tkinter on Windows is to install IDLE, so that some fucktard can stick their shitty app right up yours ...7
-
Pythons tkinter library has a module called "N". Just N. That's it.
So whenever you type "N" and want to autocomplete some local variable or class name, the IDE will instead import that module!
Who the fuck thought N would be a good name??? Some people have some serious issues...9 -
Everybody loves Python, but every documentation about a library is ***** (not good) or I am to dumb to understand? ( for example Pillow Tkinter)8
-
Disclaimer - Day in the life of a whitehat student.
Whitehat Whitehat Whitehat
What is this????
When I attended my first white hat jr online free trial class, I got to know that the teachers does not know the difference between java and javascript. Infact they were saying blockly as javascript. I was knowing the difference between the same. There were 3 types of courses -
***Note : - This information is taken from the whitehat official website***
1.) Introduction to Coding :-
Sequence, Fundamentals Coding Blocks, Loops
(Teach us to drag and drop blocks of code.org(blockly))
2.) App Developer Certificate:-
Events / UI,Conditionals, Complex Loop, Logic Structures, Turtle Coding
(Advanced drag and drop(blockly))
3.) Advance Coding with Space Tech -
Extended UI/UX, Rich GUI app, Space Tech simulation in Space Lab / Game Lab, Professional Game Design.
(GUI - with tkinter(python), Game Design - Blockly(code.org))
These things are rubbish ......making GUI's is simplest with tkinter and the students who make games (with code.org) submit their codes to the whitehat community (because the teacher says "they will compile it to an android app, then you can publish it to playstore" --- this is for 1% students who are able to design their own games).
The thing whitehat do with code given by 1% best students:-
Export to HTML from code.org
Download HTML to APK Convertor
Setup SDK
Successfully converted to APK!
Publish it to Whitehat Jr console account
Credits of the students
Income of the exporters
Rest all students will only think to be the CEO of google one day.
My Opinion - StackOverflow, Unity for Game Development, Android Studio, Dart, Flutter and Kivy (using google colab for compiling the python code to an apk) for app development and Flask, HTML, CSS for web development.7 -
Using Tkinter as my GUI when doing my compter science project instead of appjar or easygui. When the GUI isn't marked2
-
Just found out about ElectronJS.
Man! My frontend will be so much more good looking compared to my previous experiences with Desktop Apps with tkinter (in Python) or swing, awt (in Java)
... Wondering if it has any DISadvantages over the latter ones 🤔8 -
!rant
With Tkinter, when you have a menubar cascade, does anyone know how to align the accelerators to the right? Or if it's even possible?
Link to explanatory screenshot: https://i.imgur.com/oB1g5kv.jpg -
Tl;dr:
My stupid ass needs a break, also a good english lesson, sry for grammar errors.
# rant.start()
You may want to ask how it is to be kind of stressed. I'll tell ya.
I'm half way through my semester and all of my profs had the same idea: projects. Huge ass projects for everyone with the smallest possible time to finish them. Also i'm moving in a new flat in a few weeks. Shove your projects up your fucking bleached arsehole and put a huge cork right beneath it.
I started to wonder why my stupid tkinter application started freezing after implemeting a thread for a small tcp module.
Confusion.
Frustration.
Hate.
Chaos.
Crying for help.
Zergrush on SO.
Realizing i used thread.run() instead of thread.start() .
Fml, i need a summer break. -
This year I'm asked to teach Python with a GUI, but I've never used a graphic interface with Python. The chosen GUI must:
- Have an IDE, a sort of "drag and drop builder"
- Be capable of building software with forms, menus and multiple windows.
- Work with Windows 7 at least.
- Work with Python 3+
Any suggestions?
So far I tried:
- Tkinter: comes with the language (point in favor), but wasn't really able to make it work. Has no proper IDE, tried to use a builder called PAGE but doesn't seem to work.
- WxPython: didn't really play much with it. I've read some articles, but that's all.
- Qt: used several years ago with Ruby. Has an IDE (point in favor), but never tried with Python. This is my winner so far, the one big problem being the amount of stuff to install to properly work.15 -
aight cool so this is fucking stupid thanks Tk
my python teacher is putting us through Tkinter right after "this is how to do basic math" in a class meant for those with no programming knowledge at all
and i remember now why i only do CLI
i've got 2 lines in a func (because "command" params in Tk are fucking retarded), the first changes the text on a button and then the second does shit with os.system ("have this button change this other button then do *something*" ok sure) and yet the button's text does not update until AFTER THE OS.SYSTEM COMMAND FINISHES. I can't even insert a moment between them for it to update in case it needs a sec as time.sleep does *FUCK ALL*
fuck tk, luckily we're gonna move on to files next
(goddamn prereqs, sticking me in this shitty class...)8 -
I'm almost done with my Python course and after I'm gonna study more like the tkinter module, the sql module, the socket module, etc (I'm sorry if they aren't called modules still kinda new to all of this talk) And after I feel I've learned what I need I'll move on to Ruby Programming!4
-
I imagine what I want it to do at its core and what I need. Then research and get to work!
Started building a YouTube downloader using nficano's Pytube library.
I know there are a ton of them out already, but I am doing this to learn some Python and nuances. I tried YouTube-dl but that's more cli oriented and I've already built cli GUI wrappers before.
So the key I think is persevering even if it's already been done. By building this I'm learning tkinter, Python in general, and when I try to build this into an executable (so the user won't need to have Python) I'll learn how that works too. -
Could someone help me out
Im relatively new to python and I need to design a GUI any suggestions on a library i could use besides tkinter5 -
I have a couple of small ones, but one that stands out is actually fairly recent.
It was an independent project, more for practice than anything, but it involved fetching daily horoscopes from an RSS feed and showing it to the user upon request. I first just made it as a command line program,using some new modules I hadn't used before, and seeing everything work smoothly and neatly printed out made me super excited.
Not too long ago I even made a proper GUI for it using Tkinter, which also works nicely. :) Nothing so far has beaten that first excitement upon finishing the command line one, though. -
So I've just about finished a simple application practice project, it's just a program that will show you today's horoscope for different signs from an RSS feed, but I'm wondering if or how I should include disclaimers/credits for things like fonts (The two fonts I use are both open source.), and/or things like the tools used for building it (Written with Python and Tkinter in Atom.)? Do I add it under a "Help" menu or something?
What are the rules and etiquette? And is there anything specific I should include in a separate file? This is also kind of my first proper project.4 -
Someone tell me why I picked Tkinter as my GUI when I could have used easygui and got the same marks. 🙃😅5
-
Friend and me from the university need to write a program to parse Value-Change-Dumps from different files, and merge them together in a new file to easily compare them. This project last for the whole semester. The program was for one of the professors and we need to meet with him and give him an introduction how to use the program (was cli & gui based)
Long story short: enter office, give him the link to git repo. He clones it. Clicks on it and boom. Python error. Some Tkinter Error. OK ok after a few minutes we solved the issue by installing some additional packages and our program starts. But it doesn't work. About 80% of the buttons did nothing. WTF!??
Oh. We used git flow for fun and haven't moved the development branch to master and he cloned outdated code. We need nearly 30 minutes to solve this. 🤔And I'm just happy that this professor was just a calm guy . He was also happy because now he does not need to run multiple instances of GtkWave to compare his simulation results. -
i had to throw together a tool to periodically test a friend's network (plus on-demand if needed) as it keeps slowing to a crawl for no reason, i called it "netpoke" and it's retarded and i despise tkinter with all my heart but i needed non-blocking and timers and shit...
i'll prolly never release it as it's mostly heavily-modded copypaste SO garbage but y'know -
Is it possible to install tkinter from USB. My laptop doesn't have internet right now. But my work computer does1
-
goddamnshitmotherfuckingshit wtf brain? why do all the examples just work, but my code looking similar just doesn´t. why the fuck is this basic thumbsucking baby topic of a scrollable canvas screwing me over since this morning?2
-
Began learning PyQt5 a few months ago and noticed the rather "lack of online resources" as compared to Tkinter (which I had learnt earlier). Infact, multiple tutorials that showed up on the first result were actually for PyQt4.
Anyways, I made my own PyQt5 tutorial over the course of this month. This is the link to the main page for the tutorial.
https://coderslegacy.com/python/...
Still got a few things to add (like layout managers) but the main part is complete. Some feedback would be helpful! You can go head directly to a widget tutorial with this link.
https://coderslegacy.com/python/...3