CREATE Your First MODERN App In Python Tutorial 2023 (Increment Counter)

  Рет қаралды 21,897

Indently

Indently

Жыл бұрын

Today we will be creating our very first modern application in Python using Custom Tkinter, which is essentially an add-on for the default Tkinter, but it makes everything look very modern by default!
▶ Become job-ready with Python:
www.indently.io
▶ Follow me on Instagram:
/ indentlyreels

Пікірлер: 43
@CJP3
@CJP3 Жыл бұрын
Great video! Thanks for explaining this module!
@hilkiahlavinier
@hilkiahlavinier Жыл бұрын
Nice video!!! Would you please consider doing a follow up comparing the various python GUI libraries (so that we can see the difference in the interface as well as the required code)
@Indently
@Indently Жыл бұрын
Good suggestion, thank you!
@gedavaa1
@gedavaa1 Жыл бұрын
Good video, thank you!
@5hymon
@5hymon Жыл бұрын
I already known tkinter. Now i’m going to use customtkinter thx to u.
@molizanee
@molizanee Жыл бұрын
Great code bro, a hug from Brazil🤝
@manassart
@manassart Жыл бұрын
good job appreciated
@officialacescottie
@officialacescottie Жыл бұрын
i made rapidTk (pypi and github) its a way of making Tkinter code but much faster wirghting and it comes with some more advanced objects that already have expected stuff on them. e.g. Entry widgets already have a rightclick menu for cut, copy and paste. Treeviews already have hover highlighting and full support for bg and fg. It supports language.xml and language references using dot notation (github only currently) _l = localization("en_gb") _l.set_local("en_gb") print(_l.my_app.hello) -> "Hello World!" and more: forms, self validation widgets with regex, autocomplete Entry, moveable windows (Canvases) and a custome TimePicker like the ones you see on html forms.
@linuxeducation4058
@linuxeducation4058 8 ай бұрын
Many people like Tkinter ;) You have a problem with importing a modules. My examples, applications, demos work. Yours unfortunately do not ;/.
@YigalBZ
@YigalBZ 11 ай бұрын
Nice video and very practical. How can this app be distributed to Windows machines that have no Python installed? To Android? Linux?
@DrugabrieL
@DrugabrieL Жыл бұрын
Could you show us how to add an option that allows user input on how much the increment would be?
@DanielsSilis-rg9ju
@DanielsSilis-rg9ju Жыл бұрын
I have made a system using customtkinter however I did not use "class app" or defining "__init__" I just want to ask what is the benefit of using these two commands and what am I missing if I do not use them.
@SkyFly19853
@SkyFly19853 Жыл бұрын
Is it possible to create a modern GUI with Pyqt5 for Pygame?
@letshev
@letshev Жыл бұрын
Could you please make similar video about pyqt?
@dipeshsamrawat7957
@dipeshsamrawat7957 11 ай бұрын
Hey brother! Could you please upload a complete course of 'Custom Tkinter'? We shall help you. Please respond. Thank you.
@WinfriedKastner
@WinfriedKastner Жыл бұрын
Hello Federico. Thank you for your interesting video. But what I don't understand in general is ... for learning, the output in the console is certainly the easiest way to learn Python or to quickly test something. But actually every modern programming language has a GUI on board by default with which you can build your own GUIs by drag 'n' drop without much effort and without having to delve into details too much. Actually, in our times, something like this should also be available by default in standard Python besides the partly old fashioned TKinter. This also avoids developers having to learn and use x different GUIs, which also makes maintenance more difficult at some point. What do you think about this?
@maciejzettt
@maciejzettt Жыл бұрын
You would be surprised how few languages have built-in GUI functionality. It's probably the most OS-dependent content you can get so it wouldn't be a good idea to incorporate GUI libraries in the built-ins.
@linuxeducation4058
@linuxeducation4058 8 ай бұрын
My project is already a year old and I am the only person creating it. I have simple widget creation tools: WidgetCreator and a multicolor tool: ColorPaletteTool. Flutter was created seven years ago, it has many programmers and widgets also have to be programmed manually. Why? I don't know ;)
@--Valek--
@--Valek-- 7 ай бұрын
Possibly a vid showing this with a pygame window
@annujha360
@annujha360 Жыл бұрын
Can we convert this gui application into an apk file?
@databeliever
@databeliever Жыл бұрын
As always well explained! Thanks. Although I still like Flet better. I did a quick similar code using Flet UI: import flet as ft def main(page: ft.Page): page.title = "Increment Counter" page.window_width = 270 page.window_height = 240 page.window_resizable = False page.horizontal_alignment = ft.CrossAxisAlignment.CENTER page.vertical_alignment = ft.MainAxisAlignment.CENTER def increment(e): label.value = str(int(label.value) + 1) if int(label.value) > 0: btn_reset.opacity = 1 page.update() def reset(e): label.value = "0" btn_reset.opacity = 0 page.update() label = ft.Text( value="0", text_align=ft.TextAlign.CENTER, width=150, font_family="Helvetic bold", size=26) btn_increment = ft.ElevatedButton( text="Increment", on_click=increment, width=150, icon="plus_one", icon_color="green400" ) btn_reset = ft.ElevatedButton( text="Reset", on_click=reset, width=150, icon="refresh", icon_color="red800", opacity=0 ) page.add( ft.Column( controls=[ label, btn_increment, btn_reset ], width=150) ) ft.app(target=main)
@Indently
@Indently Жыл бұрын
I will try using flet as well, there are so many options out there! Thanks for sharing :)
@magachipula9233
@magachipula9233 10 ай бұрын
It's good but I'm failing to run it. It's complaining about the line : gui = App(master=app) it is saying 'TypeError: App() takes no arguments'
@kiryonnakira7566
@kiryonnakira7566 Жыл бұрын
It's not just an empty window. It has the 3 basic buttons (reduce, minimize/maximize, and close) and they are already bound to their natural functions. When I was in my 1st year of Uni I had to use AWT in java and it's a pain in the neck to create your basic window. With Tkinter, it takes literally 3 lines of code to make a working basic window. Also, I don't get why you used a try-catch here. I feel like it's unneeded as there shouldn't be an error. To my understanding, you should only use try-catches when manipulating external files.
@LauPaSat-pl
@LauPaSat-pl Жыл бұрын
You also use try-catch, if you throw an exception, to mark something (like end of iterator in a for loop)
@kullimoney365
@kullimoney365 Жыл бұрын
i think its fine but if u really want a nice gui, then i go with godot its easy fast nd simple
@Indently
@Indently Жыл бұрын
I'll give it a go, thanks :)
@parabolaaa
@parabolaaa Жыл бұрын
hey! my terminal tells me that there is no module named tkinter. when i tried installing it using pip, it told me it could not find any matching distribution for tkinter
@Indently
@Indently Жыл бұрын
tkinter is installed by default
@parabolaaa
@parabolaaa Жыл бұрын
@@Indently i get this error: File "/home/parabola/ctk.py", line 1, in import customtkinter as ctk File "/home/parabola/.local/lib/python3.9/site-packages/customtkinter/__init__.py", line 5, in from tkinter import Variable, StringVar, IntVar, DoubleVar, BooleanVar ModuleNotFoundError: No module named 'tkinter'
@flakeybran1447
@flakeybran1447 Жыл бұрын
Could you make a video about Pyscript?
@aryankothari4634
@aryankothari4634 Жыл бұрын
Tkinter still VERY annoying to work with. Flet is a new-ish project that uses Flutter as a backend.
@Indently
@Indently Жыл бұрын
I will check it out!
@thatsunpossible312
@thatsunpossible312 Жыл бұрын
Flet doesn’t allow interactive plots so it is limited when doing data apps. I keep winding up back at Qt or Tkinter for desktop apps.
@codetest1
@codetest1 10 ай бұрын
c what I have
@SACHINKUMAR-px8kq
@SACHINKUMAR-px8kq Жыл бұрын
Please Give me Code Script Sir on Github
@Naumkovich
@Naumkovich Жыл бұрын
Лол, и в чем отличие от норм ткинтера?
@lek8630
@lek8630 Жыл бұрын
описание хоть бы прочитал, кастомный ткинтер это просто аддон которые делает интерфейс окна сразу более современным
@reimus16
@reimus16 Жыл бұрын
Элементы расположить проще чем в ткинтере
@Naumkovich
@Naumkovich Жыл бұрын
@@reimus16 ну я бы не сказал, куда легче в ориг ткинтере
@CHA9LIPO
@CHA9LIPO Жыл бұрын
what is the best way to work with counters in python without using database or "global" & Thank you.
How To Fix The 10 Most Common Python Errors
9:29
Indently
Рет қаралды 13 М.
Emacs From Scratch #1 - Getting Started with a Basic Usable Configuration
58:30
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 17 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 43 МЛН
Learn Flask for Python - Full Tutorial
46:59
freeCodeCamp.org
Рет қаралды 1,7 МЛН
Using tkinter with classes
28:23
Atlas
Рет қаралды 51 М.
10 Nooby Mistakes Devs Often Make In Python
24:31
Indently
Рет қаралды 29 М.
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 481 М.
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Coding With Russ
Рет қаралды 835 М.
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 52 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,5 МЛН
GUI Applications For All Platforms with Flet in Python
11:08
NeuralNine
Рет қаралды 37 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 364 М.
Matplotlib Visualizations in Tkinter GUI Apps
13:08
NeuralNine
Рет қаралды 5 М.
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53