Automatically translated.View original post

TKinter & sqlite 3...???

# Pythonprogramming # Trending

The pairing between * * CustomTkinter * * (Python's modern GUI building library) and * * SQLite3 * * (an embedded database attached to Python) is a great partner for developing desktop applications.

The main advantages of using these two together are:

---

# # 1. No need to install anything to be chaotic (Zero-Configuration & Portability)

* * * SQLite3 * * is a database that does not require server settings (Serverless) and is already with Python. It does not require installation of a separate database program like MySQL or PostgreSQL.

* Combined with * * CustomTkinter * *, the database itself is stored as a single '.db' file in the program folder, allowing you to copy the program folder to run on another computer or pack as a '.exe' file for easy distribution.

# # 2.Modern UI in sparse performance

* * * CustomTkinter * * Allows to change the original Tkinter's 90s programming page to look modern, has a built-in Dark Mode / Light Mode, and supports Auto-scaling.

* When working with SQLite3, known for * * Very low speed and use of system resources * *, it makes your program launch fast, fluid, and does not consume the user's computer specs.

# # 3.Easy coding, sensitive learning (Pythonic & Low Learning Curve)

* Both use the Python language in all controls. The code structure is not complex.

* Connecting a GUI screen (CustomTkinter) to a database (SQLite3) can be completed in a short function. For example, when the user presses the 'CTkButton' button, it commands the SQL command ('cursor.execute') to save or retrieve the data to display on 'CTkEntry' or 'CTkTextbox'.

# # 4.Highly secure and reliable (ACID Compliant)

* Despite SQLite3 being a small database file, it has * * ACID * * (Atomicity, Consistency, Isolation, Durability) features like an enterprise database.

* It means that the data management system will be highly secure. If the program freezes or blackouts during the GUI screen is saving data, SQLite3 will have a mechanism to prevent corrupt database files (Rollback).

# # 5.Suitable for making prototype systems (Prototyping) and specialized programs

* If you want to create a program that needs to store up to 1-2 GB of data, such as * * Small Warehouse Management System, Revenue-Expenditure Record Program, Appointment Manager, or Storefront POS System * * Using this pair will help you quickly create a practical program (MVP).

---

> 💡 * * Brief summary: * * Using CustomTkinter with SQLite3 allows you to get a program with * * professional modern beauty * * while * * behind the scenes works fast, easy to manage data and is available for others to use immediately * * without installing a database system.

6/9 Edited to

... Read moreจากประสบการณ์การพัฒนาด้วย CustomTkinter และ SQLite3 พบว่าสิ่งที่โดดเด่นจริง ๆ คือการที่เราสามารถโฟกัสกับฟังก์ชันการทำงานของโปรแกรมได้มากขึ้นโดยไม่ต้องกังวลเรื่องติดตั้งฐานข้อมูลหรือปรับแต่ง UI มากมาย CustomTkinter ช่วยให้หน้าตาแอปดูทันสมัยและสวยงามมากขึ้นกว่าการใช้ Tkinter ปกติ แถมยังสนับสนุน Dark Mode ที่เพิ่มความสะดวกสบายในการใช้งานตอนกลางคืน ส่วน SQLite3 นั้นเป็นฐานข้อมูลธรรมดาที่เก็บไฟล์เพียงไฟล์เดียว ทำให้จัดการข้อมูลได้รวดเร็วมากและพกพาโปรเจ็กต์ไปที่อื่นได้ง่าย ในงานจริง ผมใช้ CustomTkinter สร้างอินเตอร์เฟซที่แบ่งส่วนการกรอกข้อมูลและแสดงผลข้อมูลอย่างชัดเจน เมื่อเชื่อมต่อกับ SQLite3 การบันทึกและดึงข้อมูลต่าง ๆ ทำได้ทันทีโดยไม่ต้องเขียนโค้ดยุ่งยากเลย การจัดการปุ่มและฟังก์ชันแบบ Pythonic ทำให้โค้ดสะอาดและเข้าใจง่ายมาก สิ่งที่ควรระวังคือการจัดการไฟล์ฐานข้อมูล SQLite3 ให้ปลอดภัย โดยเฉพาะเวลาที่โปรแกรมอาจจะปิดกะทันหัน CustomTkinter กับ SQLite3 มีระบบ Rollback ที่ทำให้ฐานข้อมูลไม่เสียหาย ซึ่งช่วยลดปัญหาจากความผิดพลาดได้เยอะ สำหรับคนที่ต้องการพัฒนาแอปขนาดเล็กถึงกลาง ที่เน้นความรวดเร็วและสะดวกในการใช้งาน คู่หูนี้ตอบโจทย์ได้ดีมาก ยิ่งถ้าอยากทำระบบต้นแบบเร็ว ๆ เพื่อลองฟีดแบ็กลูกค้า ด้วยการใช้ CustomTkinter และ SQLite3 จะช่วยลดเวลาพัฒนาและเพิ่มความโปรเฟสชันแนลของหน้าตาแอปในเวลาเดียวกัน สุดท้ายอยากแนะนำว่าลองใช้ไลบรารีทั้งสองนี้ร่วมกันดู แล้วคุณจะพบว่าการพัฒนาแอปที่ดูดีและมีประสิทธิภาพนั้นไม่ยากอย่างที่คิดเลยครับ

Related posts

A split image comparing Google Drive/Sheets on the left monitor and Notion on the right, with text asking whether students should use Google or Notion for organization.
A desk setup with a monitor displaying Google Drive, alongside text explaining a preference for Google's flexibility over Notion for student organization.
A monitor displaying Notion, with text overlays detailing its uses for students, including semester planning, study schedules, notes, assignment tracking, and digital filing.
Student; Notion or Google Sheets?
📊 If it’s not organized, it’s not getting done. I built a whole system in Notion to track my classes, apps, MCAT, and even my habits… and honestly? It changed everything. Google Sheets helps me plan my week by energy, not guilt. 💡 Use templates to save time 💡 Add emojis for quick scanning 💡 Al
Tyra-Lee 🩺

Tyra-Lee 🩺

107 likes

A study desk setup featuring a monitor displaying a website, a keyboard, mouse, and an ergonomic office chair. Text overlay states, "Three websites I use as a straight A+ student."
A tablet screen displaying the Wolfram Alpha website, showing its homepage with various categories for calculations, knowledge, and subjects like Mathematics, Physics, and Engineering.
A tablet screen displaying the Project Gutenberg website, featuring its welcome message, a library of over 75,000 free eBooks, and examples of classic book covers.
💻 3 FREE Websites That Help Me Stay an A+ Student
Let’s be real, getting good grades isn’t just about working harder, it’s about working smarter 💅📚 Here are 3 websites I use all the time as a straight A+ student: 🧠 Wolfram Alpha – for when math gets a little too mathy lol 📚 Project Gutenberg – free access to thousands of classic books (SO G
CompSkyy

CompSkyy

38 likes

📝 Sticky Notes Not Loading? Fix It Safty
Microsoft Sticky Notes stuck loading or not opening on Windows? This video shows how to fix Sticky Notes loading problems using app reset, PowerShell repair, Windows troubleshooting, and backup recovery methods — while protecting your saved notes from being lost. #datarecovery #stickynotes #w
XanthusTechCore

XanthusTechCore

0 likes

An iPad in a pink composition book-style case with a pink stylus, white headphones, and a white tube on a wooden surface. The image has text overlayed: '5 WAYS TO USE YOUR IPAD'.
An iPad displaying a digital journal entry titled 'MISSING THE HOMELAND' with various images, text blocks, and a music player widget, set against a dark background with calendar months at the top.
An iPad displaying a font creation interface. The screen shows an alphabet, a large 'A' being designed with grid lines, and tools at the bottom, under the title 'CREATE YOUR OWN FONT'.
5 (more) ways to use your iPad 👩🏻‍💻✍🏻💕
You guys seemed to like the last post, so here are some more ways to use your iPad! ☺️✍🏻💕 1. Digital journaling: turn your iPad into an art journal, junk journal, diary, scrapbook… it is so versatile!! Not only are you saving paper, but you’re also getting to unwind and be creative ✍🏻💕 2. Cre
enchantia

enchantia

27.8K likes

You Don’t Have To Go To College to Be a Tech Bro!
Getting into computer science doesn’t have to cost a fortune—there are so many free resources out there that helped me get started. Harvard’s CS50 was a game-changer, breaking down core concepts like algorithms and data structures in a super engaging way. CrashCourse made understanding CS fundament
CompSkyy

CompSkyy

143 likes

4 Powerful Websites You’ll Wish You Knew Sooner
Always working smarter, not harder. These AI tools will help you code faster, automate tasks, and manage projects like a pro. Here’s what to try + prompts to get started: 1. Replit – Code, collaborate, and deploy directly in your browser. 👉 replit.com Prompt: Build a Python Flask API that ac
Deft Point Consulting

Deft Point Consulting

87 likes

#fyp #codember #hicodember #developer
codember

codember

1 like

Build better habits with this Notion Habit Tracker
I started using this Notion Habit Tracker to organize my daily routines, and it has made staying consistent so much easier. Instead of feeling overwhelmed by big goals, I can now: 🌿 track my habits every day 📊 see my progress visually 🎯 stay focused on what matters 💡 build routines that actu
IdeationWorks

IdeationWorks

17 likes

A laptop displays a Notion template for tracking Stardew Valley Community Center bundles, featuring item checklists, bundle categories, and Stardew Valley-themed graphics like corn and gift boxes. The screen shows various items and their associated bundles.
A close-up of the Notion template shows the 'SDV: Bundle Items' section with a search function highlighted. Checkboxes next to items like Potato and Tomato indicate that checked items disappear, helping users track bundle progress.
The Notion template displays 'Bundles' and 'Rooms' sections, allowing users to check progress on each bundle. Stars indicate donated items, while black circles signify missing items, helping track donations and bundle access.
notion template to track your stardew bundles 🌷💐✨
*i did not create this, but is available online for free!* i’ve been very vocal that i’m on my first ever play through of stardew valley right now, and i’m currently on winter of year 1 and finally decided to see what was up at the community center 😂 i was quickly overwhelmed and was going to m
ℜ𝔬𝔫𝔫𝔦𝔢 🦇

ℜ𝔬𝔫𝔫𝔦𝔢 🦇

164 likes

Language Study Template (Notion) - Part 2 Tutorial
✨Perfect for Chinese learners (but work for any language too). Start your language study journey today with structure, creativity and motivation all in one place. Download now at 🛒missydizzy.gumroad.com #notiontemplate #studytemplates #chineselearning #notionstudent #learnlanguage
Missy Dizzy

Missy Dizzy

2 likes

Setting My Pink Ipad Up Like A MacBook 🎀
I ordered everything off amazon and i highly recommend it 😭 ! Order your iPad from the apple store on amazon because it's cheaper ! Comes quicker & offers the same warranty/insurance as the actual apple store offers its like all the same , screen protector was mandatory for me cause soon as
Girlyyy🩷

Girlyyy🩷

1571 likes

This MacBook Neo in Citrus tho! 😮‍💨🍋🍋‍🟩
This MacBook Neo in Citrus tho! 😮‍💨🍋🍋‍🟩 #apple #macbookneo #macbookneounboxing #neo #macbookneocolors
Premal Tailor

Premal Tailor

257 likes

Doing This For Myself Fitness Journal Tracker & Planner ✍️💪
The secret to consistency is organization, and this fitness tracker makes staying on path easier than ever. 🔗 In comments #DailyWellness #ProgressOverPerfection #FitnessJournaling #WellnessPlanner #WorkoutTracker
JsCreativity

JsCreativity

1 like

The image displays the title '30 AI agent use cases for each skill level' with a note to read the caption for AI agent definitions. It features a vibrant red flowering plant against a green and blue background, with a Lemon8 watermark.
This image lists 5 beginner AI agent use cases, including email summarization to Slack, auto-saving Gmail attachments to Drive, building a Lovable FAQ chatbot, daily calendar summaries to Slack, and auto-thank-you emails after form submissions, set against a floral background.
This image presents 5 intermediate AI agent use cases: RAG Doc Search Agent (n8n), AI-powered Inventory Assistant (n8n + Airtable), Quiz-based Lovable bot, Abandoned cart recovery bot (Shopify), and Social content repurposer (Make + GPT), over a floral and fence background.
15 AI Agent Use Cases 🤖
If you’re new to AI, here’s a quick breakdown. An AI agent is a digital worker that can think, act, and make decisions based on what’s happening inside your business. It’s not just an automation. It’s a workflow that can respond to real data, run across multiple tools, and handle tasks witho
Bria | Social, Design, & AI

Bria | Social, Design, & AI

29 likes

A desk setup featuring a tablet displaying Google Calendar and a MacBook Air showing Notion Calendar, illustrating a comparison between the two digital planning tools.
A MacBook Air screen shows Google Calendar, highlighting its primary function for scheduling events, meetings, and tasks, as described in the accompanying text.
A MacBook Air displays Notion Calendar, emphasizing its integration with Notion for project scheduling and its ability to sync with other calendars like Apple or Google Calendar.
google calendar vs notion calendar 🗓️🎧💖
google calendar vs notion calendar 🗓️🎧💖 i’ve been using google calendar since high school, and switched over to notion in the beginning of the year! i’ve been able to play around with notion calendar a lot and wanted to share some differences between the two platforms so you can choose what’s be
lia 💗

lia 💗

281 likes

tour my daily planner in notion! 🥰✨
hi friends! i’ve started to get back into using notion to try to help me get back into a normal routine of things. i definitely find notion difficult to use at times, but i am starting to get a little more used to using it! as of right now i’m keeping my notion page extremely simple so i don’t
cait

cait

157 likes

My Favorite Pages in My Notion Content Calendar
These are my most-used pages inside my Notion Content Planner 📒 the ones that keep my life and creator workflow actually organized ✨ 📅 Content Calendar to visually plan posts across platforms 📊 Analytics to track and compare how my accounts are performing 🎯 Goals to set monthly creator goals
bycharlottesendi

bycharlottesendi

99 likes

Fridge Restock Pt. 1 ✨👏🏼#restock #fridgerestock
Fridge Restock Pt. 1 ✨👏🏼 #restock #fridgerestock #short
Riley

Riley

275 likes

NOTION TOUR ✨how I stay organized w/ notion!
welcome to my notion! I use notion for literally EVERYTHING. it’s a fantastic tool to stay organized with. while notion can feel a little overwhelming at first, templates are a great way to get started. here’s a lil overview of my page: • directory page - I use this page to quickly acces
adrianna

adrianna

59 likes

PM's secret weapon! #coding #programming #developer #techtok #engine #usptp
dewdropghost

dewdropghost

16 likes

#PhotoDump
Slick Kirkland

Slick Kirkland

1 like

A title slide comparing "MacBook Neo vs iPad Air" with the question "Which One Is Actually For You?" against a light background, featuring a pink MacBook Neo, a white iPad Air, and a yellow MacBook Neo.
A comparison table titled "Basics" detailing specifications like price, screen size, chip, storage, battery, and keyboard for MacBook Neo and iPad Air m4, with images of both devices above.
A slide discussing the use case for students or work-from-home individuals, recommending the MacBook Neo due to its battery life, built-in keyboard, and macOS multitasking capabilities. A hand types on a pink laptop.
Which Apple to Pick 🍎🍏 MacBook Neo vs iPad Air m4
They’re the same price and both just launched, I did a little comparison so you don’t have to. Spoiler: which one is better for YOU entirely depends on your lifestyle. Student? Creator? Or just want a cute computer that works. Both start at $599 and already available for preorder. Which one ar
Unrealtoreal

Unrealtoreal

241 likes

🔥 How a Coldplay Song PROVES Karen Read Innocent
Loophole Lawyer

Loophole Lawyer

0 likes

#cybersecurity
Cyber Secrets

Cyber Secrets

5 likes

A laptop displaying a Notion planner with a purple-themed background, showing the title 'THINGS I DO IN MY NOTION PLANNER'. An open book rests in front of the laptop, suggesting a cozy, productive setup.
A Notion page titled 'Goal Tracker' with the overlay 'Track My Goals'. It shows an entry for 'Get my license' with a future date and 'Not started' status, alongside a humorous 'Bikini Bottom Driver License' image.
A Notion page titled 'Hobby tracker' with the overlay 'Track My hobbies and progress in them'. It lists hobbies like 'Electric Guitar' and 'Crochet a mini bee' with their current progress and tasks.
Things I actually use in my new notion planner
Started using this to help with my ADHD and so far its rlly working! The next version I make will have buttons that congratulate you when you complete stuff because I find that helps with my motivation Link in my bio ! #lifestyle #productive #digitalplanning #adhd #lifeorganization
Muse

Muse

9 likes

I said what I said… 💅🏽
#tech #womeninSTEM #coding #VSCode #programming
genesis.io

genesis.io

2 likes

My Aesthetic Notion Travel Planner 🤍🧳
I’ve been obsessed with planning my trips in a more organized (and aesthetic) way — so I made a Notion Travel Planner ✈️✨ Here’s what it helps me keep together: · a clean, auto-sorted itinerary · packing list + outfits for each day · budget + expense tracker · all tickets, hotel info & c
IdeationWorks

IdeationWorks

2 likes

Fireworks glowing in the dark UI sky ✨
Tiny sparks, soft motion, festive vibes in Tkinter. #tkinter #python #uianimation #fireworks #codingvibes 🎆
INFILILA

INFILILA

10 likes

MacBook Air 2026 vs MacBook Pro 2022 power up test 🤯
#macbook #macbookair #macbookpro #apple #fyp
TechLunar

TechLunar

10 likes

🔥 How a Coldplay Song PROVES Karen Read Innocent
Loophole Lawyer

Loophole Lawyer

0 likes

officially an university alum #apple #applemacbookair #macbookair #skybluemacbookair
#apple #applemacbookair #macbookair #skybluemacbookair #appleevent #usc #universityofsoutherncalifornia #collegestudent
Cassidy HT

Cassidy HT

0 likes

A hand holds a white Boox Palma e-reader displaying an illustration of leopards and tropical leaves with the text "Stay wild and free." Yellow text overlays the image, reading "Boox Palma LOVE IT! first thoughts."
Boox Palma 📚 E-Reader Review
***First things first…DO NOT buy from the Boox website. Their return policy is complicated, Amazon is a better option. *** 💵 Price: $279 💌 Brand: Boox This was definitely a want, not a need. I have a Kindle Paperwhite which I LOVE with all my little heart. However, on more than one occasion,
Ashley Sharie

Ashley Sharie

195 likes

My go to interview hacks that actually work!
Y’all, I’ve had my fair share of awkward interview moments, sweaty palms, blank stares, the whole nine yards. But after landing multiple offers, I’ve cracked the code on what actually works. Let’s dive into the strategies that turned my nerves into confidence. First up, facial expressions. Pract
Mayamaya😎

Mayamaya😎

9 likes

I called it!
MetaTok
Ezili Iyaterra

Ezili Iyaterra

0 likes

My Favorite Pages in My Notion Meal Planner✨
Here are my most used pages inside my Notion Meal Planner Template 🍽️ Meal Planner to plan out weekly meals, stay consistent, and avoid last-minute stress. 📖 Recipe Book for all my favorite recipes in one searchable place 🛒 Pantry to track what I have, what I need, and avoid overbuying Each
bycharlottesendi

bycharlottesendi

75 likes

Xiaomi Monitor A27i จอคอม 27 นิ้ว งบไม่แรง แต่ใช้ทำงานคุ้มกว่าที่คิด 🖥️📖
ช่วงนี้เราเพิ่งเปลี่ยนจอคอมใหม่ หลังจากใช้จอเดิมมาน่าจะเกือบ 10 ปี จริง ๆ จอเก่าก็ยังใช้งานได้นะ แต่เริ่มรู้สึกว่าจอมันเล็ก เวลาทำงาน เปิดหลายหน้าต่าง หรือออกแบบงานนาน ๆ คือแอบล้าตา สุดท้ายเลยลองเปลี่ยนมาใช้ Xiaomi Monitor A27i เพราะกำลังมองหา จอคอมทำงาน 27 นิ้ว ที่งบไม่แรง แต่สเปกตอบโจทย์กา
ปวยเล้งชอบรีวิว🌱

ปวยเล้งชอบรีวิว🌱

1 like

A white e-reader displays text from a book, showing time, battery, and page number. A small pink bow charm hangs from its bottom right corner. The device rests on a light-colored, textured fabric surface.
Boox Palma E Reader
I can’t make up my mind with which e reader device to pick, right now I’m leaning towards Boox Palma because it’s the size of my phone and I’m mostly going to use it more than anything I have (my phone, iPad, tablet) it’s either a boox Palma or a kindle paperwhite
TheCozyEdit

TheCozyEdit

54 likes

Gelöschte Haftnotizen retten – 4 einfache Wege!
Versehentlich Haftnotizen in Windows 11 gelöscht? Keine Panik! Hier sind 4 Methoden, um sie zurückzubekommen: 1. Überprüfung im Datei-Explorer. 2. Vorgängerversionen wiederherstellen. 3. Dateiversionsverlauf. 4. MyRecover – die Rettung, wenn kein Backup da ist. So holst du deine Notizen im Ha
ClaraTech

ClaraTech

1 like

Unboxing the AULA F75 Mechanical Keyboard
❤️Product: AULA F75 Mechanical Keyboard 👍Why I like it: Creamy typing, 3 connection modes, Comic Style, Compact ⭐Rate:5/5 🔗 affiliate: https://amzn.to/4ofhXd9 - keyboard 🔗 affiliate: https://amzn.to/4fahK6U - travel case #asmr #unboxing #gamergirl #gameraesthetic #techfinds
The XxFeralGamerxX

The XxFeralGamerxX

9 likes

SearchGPT
ChatGPT now has advanced search capabilities #ai #chatgpt #chatgpthacks
Rider

Rider

8 likes

⚠️ Do NOT run this .exe file or else Liam Neeson will find ya #interesting #filspixel #storytime #computer #fypシ #malware #wannacry #windows #fyp #foryoupage #foryou #trojan #virus #tiktok #viral
yulianavilla

yulianavilla

0 likes

A person types on a white low-profile mechanical keyboard with blue backlighting, positioned in front of a MacBook displaying a cute wallpaper. Text overlays highlight it as the 'best macbook keyboard!' and 'minimal'.
A white mechanical keyboard with glowing keys is shown next to a MacBook. Text overlays point out its 'hot-swappable switches' and 'customizable shortcut key' features.
A white mechanical keyboard is placed in front of an iPad propped on a blue stand, displaying code. Text overlays indicate 'tri-connectivity' and that it 'works with iPad as well'.
the perfect macbook keyboard? ⌨️
just got the kzzi i75v2 ⌨️ a low-profile mechanical keyboard that feels right at home with your macbook. It has slim 8.8 mm front height, quiet linear switches, and a clean layout make it perfect for typing on the go 💼 hot-swappable 🔁 Rgb-ready 🌈 and wireless 🔋 it’s super portable, efficient, a
sanae ☕️

sanae ☕️

142 likes

A pink retro-style mechanical keyboard with round keys and a white Apple Magic Keyboard with a white mouse are displayed on a desk with a cute mousepad and decorative figurines.
A comparison chart detailing features like typing feel, durability, customization, and noise level between mechanical keyboards and Apple Magic Keyboards, with small images of both keyboard types above.
A comparison chart titled 'Portability and Usage,' outlining differences in portability, best use cases, gaming suitability, and design between mechanical keyboards and Magic Keyboards.
✿˖° Mechanical Keyboard vs. Apple’s Magic Keyboard
°𐐪♡𐑂°‧₊ ✨Trying to choose the right keyboard? Mechanical keyboards are tactile, clicky, and satisfying to type on, making them perfect for gaming, coding, or long typing sessions. They’re durable, customizable, and bold, but heavier and louder. Apple’s Magic Keyboards, on the other hand, are sleek
peachiesuga ♡

peachiesuga ♡

32 likes

See more