[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-344886-105":59,"doc-detail-344886-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","creating-a-gui-based-train-ticket-booking-system-in-python-using-mysql","Creating a GUI-Based Train Ticket Booking System in Python using MySQL","","Design and development of a GUI-based Train Ticket Booking System built with Python Tkinter for the interface and MySQL for the data layer. The work is motivated by learning through creation rather than copying existing projects, targeting practical challenges in railway reservation workflows. Admin Mode supports train management features including adding trains, assigning seats, defining routes, generating reservation charts, and deleting trains. User Mode provides ticket booking, PNR inquiry, and viewing booking history. Structured database storage improves data integrity and retrieval efficiency while enabling modification of multiple train records.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/creating-a-gui-based-train-ticket-booking-system-in-python-using-mysql/344886/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/creating-a-gui-based-train-ticket-booking-system-in-python-using-mysql/344886.png","ImageObject",300,407,{"name":92,"@type":93},"Aurora","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-09-22",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What technologies does the train ticket booking system use?","Question",{"text":113,"@type":114},"The front-end is implemented with Python’s Tkinter GUI, and the back-end uses MySQL for structured database storage and management.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What functions are available in Admin Mode?",{"text":118,"@type":114},"Admin Mode enables adding trains, assigning seats, defining train routes, generating reservation charts, and deleting trains.",{"name":120,"@type":111,"acceptedAnswer":121},"What functions are available in User Mode?",{"text":122,"@type":114},"User Mode allows ticket booking, PNR inquiry, and viewing booking history.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},344886,1790467113,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":52,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},4810365810221,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","ISSN: 2834-4928  \nResearch Article  Journal of Electrical Electronics Engineering  Creating a GUI-Based Train Ticket Booking System in Python using MySQL  \nJishnu Teja Dandamudi*  \nAmrita School of Artificial Intelligence, Coimbatore, Amrita Vishwa Vidyapeetham, India  \n*Corresponding Author  \nJishnu Teja Dandamudi, Amrita School of Artificial Intelligence, Coimbatore, Amrita Vishwa Vidyapeetham, India.  \nSubmitted: 2025, May 12; Accepted: 2025, Jun 02; Published: 2025, Jun 11  \nCitation: Dandamudi, J. T. (2025) . Creating a GUI-Based Train Ticket Booking System in Python using MySQL. J Electrical Electron Eng, 4(3), 01-10.  \nAbstract  \nIn today’s digital era, students often resort to replicating pre-existing projects, limiting opportunities for innovation and genuine learning. This project aims to design and develop a novel Train Ticket Booking System using Python’s Tkinter for the front-end and MySQL for the back-end. The system is a self-driven initiative, created without referencing any prior implementations, with the objective of learning new skills and addressing real-world challenges in railway reservation systems. The project seeks to digitize and streamline the processes involved in railway inquiry and ticket reservation. In Admin Mode, the system enables functionalities such as adding trains, assigning seats, defining train routes, generating reservation charts, and deleting trains. In User Mode, it allows ticket booking, PNR inquiry, and viewing booking history. The software supports storing and managing multiple train records while offering intuitive options for modifications. Key features include detailed train information, such as travel duration, arrival and departure timings, and historical ticket bookings. By leveraging a structured database, the system enhances data integrity and retrieval efficiency, offering a comprehensive solution for railway management. This project not only demonstrates practical application development but also emphasizes learning through creation, contributing to the broader goal of fostering innovation in student-led initiatives.  \nKeywords: Python, Python Tkinter GUI, MySQL, Text Files, File Handling, DDL, DML  \n1. Introduction  \n• Interest  \nThe interest that made me do this paper is to create an app like structure cum interface for train ticket booking using pure Python.  \n• Python  \nPython is a high-level, interpreted programming language known for its simplicity and readability. It was created by  \nGuido van Rossum and first released in 1991. Python is widely used for web development, data analysis, scientific computing, artificial intelligence, machine learning, automation, and more.  \n• Key Features of Python  \nEasy to Learn and Use: Python has a simple syntax similar to English, making it accessible for beginners.  \nInterpreted Language: Python executes code line by line, which makes debugging easier.  \nHigh-Level Language: Python abstracts complex details of  \nthe computer’s operations, allowing developers to focus on programming logic.  \nDynamic Typing: Variable types are determined at runtime, eliminating the need for explicit declarations.  \nExtensive Libraries: Python has a rich set of libraries and frameworks, such as NumPy, Pandas, TensorFlow, Django, and Flask.  \nCross-Platform: Python runs on various platforms (Windows, macOS, Linux)  \nCommunity Support: Python has a large, active community, ensuring plenty of resources, documentation, and support.  \n• Common Uses of Python  \nWeb Development: Using frameworks like Django and Flask. Data Science and Machine Learning: With libraries like NumPy, Pandas, Scikit-learn, and TensorFlow.  \nAutomation/Scripting: Writing scripts to automate repetitive tasks.  \nGame Development: Using libraries like Pygame.  \nScientific and Numeric Computing: With tools like SciPy and Matplotlib.  \nSoftware Development: For building desktop and mobile applications.  \nInternet of Things (IoT): Using Raspberry Pi and other microcontrollers.  \n• M","cbCaivHRVIviUrPS","https://ap.wps.com/l/cbCaivHRVIviUrPS","pdf",1054061,"English","# 1. Introduction\n## Interest\n## Python\n## Key Features of Python\n## Common Uses of Python\n## MySQL\n## Key Features of MySQL\n## Common Uses of MySQL\n## How MySQL Works\n## Why Use MySQL","[{\"question\":\"What technologies does the train ticket booking system use?\",\"answer\":\"The front-end is implemented with Python’s Tkinter GUI, and the back-end uses MySQL for structured database storage and management.\"},{\"question\":\"What functions are available in Admin Mode?\",\"answer\":\"Admin Mode enables adding trains, assigning seats, defining train routes, generating reservation charts, and deleting trains.\"},{\"question\":\"What functions are available in User Mode?\",\"answer\":\"User Mode allows ticket booking, PNR inquiry, and viewing booking history.\"}]","Creating a GUI-Based Train Ticket Booking System in Python using MySQL | PDF",1790055562,25,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4155bfde572e275bb8036a7ad6fac327.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7206c784756998d247e762ba673524fa.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b4124c279244673a2a517823b29863e3.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c630acf6465033ab95debb98f90ba4a1.webp",980,1268]