#Tkinter
Explore tagged Tumblr posts
thedigitalcreations · 6 months ago
Text
Custom Tkinter Cursor
To set an image as a custom mouse cursor for you Python Tkinter App, you can follow these steps:
Tumblr media
for a detailed explanation, you can watch this video:
3 notes · View notes
azure-clockwork · 7 months ago
Text
That feeling when your boss asks you if you’ve made any breakthroughs on any of the Python tools you maintain and the answer is yes, but the breakthrough you made was finally finding a forum half explaining a niche Tcl function which you then spent the afternoon running experimenting with till you understood it enough to use it to bastardize somebody else’s custom tkinter text widget.
This allows me to make a textbox that has both line numbers and a scrollbar.
2 notes · View notes
fortunatelycoldengineer · 8 months ago
Text
Tumblr media
Pandas . . . . for more information and tutorial https://bit.ly/3jqTlRP check the above link
2 notes · View notes
vexacarnivorous · 2 years ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
day 21-23 | friday | 7/4/23
starting to explore coding with tkinter! like with turtle, it's to do with visuals, but this is more web-based. these past few day's program exercises: a shopping list, a unit price calculator, and the easiest join-the-dots game (you're the one placing the dots, which connects the previous dot to the one you just put down). that join-the-dots one isn't tkinter obviously.
the last snip is of the bullseye program that was mentioned earlier on in 100doc since i realised i only posted the code and not what it actually looked like.
i hope everyone else enjoyed their good friday (i nearly forgot about it tbh) and is excited for easter! :)
24 notes · View notes
pythonfan-blog · 2 years ago
Text
9 notes · View notes
sakuyaux · 11 months ago
Text
Tumblr media
was playing around w/ school assignment, got this cool pattern by accident
2 notes · View notes
sam-code-hub · 2 years ago
Text
Python Projects with source code
Hello Python enthusiasts!
I'm excited to announce that my website, SamCodeHub, is now live and ready to be explored!
Website link: samcodehub.com
What you'll find on the site:
Programming tutorials in Python. Over 400 fascinating Python projects with source code. Step-by-step guides for beginners and advanced users. Whether you're just starting your Python journey or looking to improve your skills, SamCodeHub has something for everyone!
I would be incredibly grateful if you could take a moment to visit the website and share your feedback and opinions. Your input means a lot to me!
So, click on the link, dive into the world of Python, and let me know what you think! Feel free to share it with other Python enthusiasts as well!
Happy coding!
2 notes · View notes
cvn-portfolio · 22 days ago
Text
Tumblr media
Minesweeper
Minesweeper is a classic puzzle game that challenges your logic and patience. The goal is to clear a minefield without detonating any mines.
Go to repository
Installation
Prerequisites:
Make sure you have installed: Python 3x
Pasos de instalación:
Clona el repositorio: sh git https://github.com/cristian-velazquez-neva/minesweeper-game.git
Use
Once the application is downloaded, you will find a single file named main with a .pyw extension, so you only need to run it to access the user interface.
This will display a 10x10 button grid with random values on each spin depending on where the mines are located and a button on the back that serves to generate a new game board.
How to Play
Click any square on the grid to start the game.
Review the numbers on the squares. The numbers indicate how many mines are touching that square.
Right-click on any square that you think contains mines. This will mark them with an "F" of flag.
Click any squares that don't contain mines. This will clear them and reveal more numbers or blank spaces.
Double-click on the boxes near the "F" whose value subtracting the flags is 0. This will erase them and reveal more numbers or blank spaces.
Avoid clicking any squares that contain mines. This will end the game.
0 notes
labdeck123 · 29 days ago
Text
Improving User Experience: Adding Keyboard Shortcuts to Your Tkinter App
When it comes to developing user-friendly applications, efficiency plays a major role. Keyboard shortcuts are an excellent way to enhance user experience by making navigation smoother and faster. Tkinter, one of Python's most widely used GUI libraries, provides simple methods for incorporating keyboard shortcuts into your application. In this post, we’ll explore how to add these shortcuts to your Tkinter app.
Tumblr media
Why Add Keyboard Shortcuts to Tkinter?
Keyboard shortcuts help users perform actions more quickly, saving time and improving overall interaction with the application. Rather than having to navigate through menus or click multiple buttons, a user can press a key combination to execute a function instantly. This can be particularly useful for tasks like saving files, copying content, or switching between different views.
Implementing Keyboard Shortcuts in Tkinter
In Tkinter, you can easily bind specific keyboard keys or key combinations to functions using the bind() method. This method allows you to capture keypress events and associate them with a predefined action. Below is a simple example of how to use keyboard shortcuts in Tkinter.
Step-by-Step Guide
Import Tkinter and Create the Main Window:First, we need to import Tkinter and set up the main window.pythonCopyEditimport tkinter as tk root = tk.Tk() root.title("Tkinter Keyboard Shortcuts")
Define Functions for Actions:Now, let’s define a function that we want to trigger with a keyboard shortcut. For example, we’ll create a simple function to display a message when triggered.pythonCopyEditdef show_message(): print("Keyboard shortcut activated!")
Bind Keyboard Shortcuts:Next, we’ll use the bind() method to associate a key combination (such as Ctrl+S) with the show_message function.pythonCopyEditroot.bind('<Control-s>', lambda event: show_message()) In this example, when the user presses Ctrl+S, the show_message() function is called, and the message "Keyboard shortcut activated!" is printed in the console.
Run the Tkinter Mainloop:Finally, we run the Tkinter main loop to keep the application open and interactive.pythonCopyEditroot.mainloop()
Additional Tips for Adding Shortcuts
Multiple Key Combinations: You can bind multiple keys or combinations to different actions. For example, '<Control-q>' could be bound to quit the application, '<Alt-f>' could open a file dialog, and so on.
Functionality Enhancements: Consider providing feedback when a keyboard shortcut is used, such as changing the interface or displaying a tooltip. This can help users know the action was successfully executed.
Common Shortcuts: Incorporating widely known shortcuts, like Ctrl+C for copying, Ctrl+V for pasting, or Ctrl+Z for undo, will make your app feel more intuitive and familiar to users.
Conclusion
By adding keyboard shortcuts to your Tkinter app, you can significantly improve its usability and efficiency. Tkinter makes it simple to bind keys to functions, and these shortcuts can be used to speed up common tasks and create a smoother, more seamless user experience. Whether you’re building a small utility or a more complex application, implementing keyboard shortcuts is a simple yet effective way to enhance the functionality and usability of your Tkinter-based projects.
0 notes
machinelearningsite · 11 months ago
Text
Python for Beginners: Creating a Desktop App in Python
Have a look at this blog where I create a Python app to convert RGB image to grayscale.
A couple of weeks ago, I published a blog on creating a GUI in Python using Tkinter. I thought of kicking it up a notch and integration the function of OpenCV in my Python app. So I decided to create a small desktop app where you can upload an image and convert it to grayscale with a click of a button. So get your IDE ready, grab a cup of coffee, and let’s turn our code into creativity! Tkinter…
Tumblr media
View On WordPress
0 notes
apothekaries · 1 year ago
Text
ok real question, does anyone know python? i got this project i have to turn in and it needs to be python and i have no idea what i'm doing. can anyone help
0 notes
thedigitalcreations · 5 months ago
Text
Python Tkinter TK Widgets
All the TK widgets available by default. You don't have to install anything to use them:
Tumblr media Tumblr media
For more details:
1 note · View note
solspuren · 1 year ago
Text
Tumblr media
信用の建玉を自分ルールの中で所持現金からどれくらい建てられるか計算するやつと、
自分ルールの逆指値と指値の値を建単価から計算する計算機をtkinterで作った。
いちいち電卓で計算するのが邪魔くさいので。
逆指値の成行でやってたら不足金が発生しかけていてやばかった。
逆指値は指値でやりましょう。
あと、予定カレンダーhtmlのfaviconをKロゴにした。
0 notes
fortunatelycoldengineer · 8 months ago
Text
Tumblr media
OpenCV . . . . for more information and tutorial https://bit.ly/3XAqJYt check the above link
0 notes
mydigitalcreations · 1 year ago
Text
Using Python Defined Bitmaps with Labels
Tumblr media Tumblr media Tumblr media
1 note · View note
pythonfan-blog · 2 years ago
Link
7 notes · View notes