wxPython Programming Tutorial 4: Panels
Skills:
Backend Performance60%
Key Takeaways
This video tutorial covers the basics of creating graphical windows using wxPython, specifically focusing on panels and adding text boxes to them. The tutorial demonstrates how to define a panel, add a text box, and position it within the frame.
Full Transcript
hello and welcome to the fourth WX python tutorial last tutorial we added a file button and then an exit so we could like actually a hit file and exit and gave an event for it and this tutorial and actually let me show you where we are at the moment and this so this is where we left off we've got a pic window we can do things with the window and we can go file exit but as you can see there's literally nothing in here because all we've done so far is create a frame but the next step to doing more things besides adding a toolbar right so you have a menu bar and a tool bar and we'll get into toolbars in a little bit but the most probably important part to any window or program is going to be actually what's right in here and that's called a panel right so on if you just look at your own IDE here this is your menu bar this is your frame like right around the edges but everything in here this is your panel like this is where you can do stuff and type things in right so let's make a panel and right now we're going to make a really really basic panel will just make a panel just like this basically so let's hop right down into that basically what you're going to do is in the GUI now we want to have a panel so let's go ahead and just define a panel as we'll call it a panel and that's going to equal a WX dot panel and in here we'll just put itself and we'll close that off and let's also say let's say we want to have another button right like we have the menu bar file button because eventually what you'll have is you'll have like a panel and then a menu bar and then we've got a file button and then the exit item on the file button but let's say like so we can start getting used to kind of organization here just right now we just kind of have everything in you let's say you want to add another button so let's say edit button and again that's going to equal WX menu and then we'll come down here where we had the file button and we'll just say menu bar dot append and we'll say edit button and then obviously this is going to be called edit so that's it with adding like more more buttons to it and hopefully you're starting to catch on it's there with as far as how easy you can just add more and more buttons now the next thing we want to do is after we've done you know the menu bar so I would say it looks kind of like that probably over time and you can add more stuff and you'll add stuff to those buttons because like you've got added buttons just trying to help y'all get used to organizing these windows now what we need to do is see we've defined a panel but we haven't actually done anything with that panel like we defined it but when we run this program this is all we get like we've got a file we've got edit but there's nothing there we've got our exit at least because we made that but we've said hey ok we're going to get prepared to do a panel women said like we haven't initialize that panel so next thing we want to do is we're going to add just a text box so we'll just say text control and that's going to be using our panel that we made then you can define any position that you want we'll just say we'll do 1010 and it's kind of like positioning things in HTML again you're using like the top left corner and then size will say the size is 250 by 150 and and that should be it so we'll save that we'll run it and here is our text box now again so what I mean by that is see here's the end of the frame right like this is the frame the menu bar kind of applies - it's not really a part of the frame but it kind of is as far as like customizing the panel stuff right like minibar is part of the name theoretically so when you say position 10 10 that means it's 10 pixels over 10 pixels down right so that's what that means and then obviously size 250 it's 250 wide by 150 pixels tall and then within here we could type stuff and we're going to you know make like an epic program where you can just type stuff no not really but that's the basics of panels and then you know besides making it you know a text box you know pretty much anything now at this point with using these panels so hopefully you guys are starting to get a little bit more interested in these WX python windows and thank you for watching and stay tuned for the next video
Original Description
Full Playlist Link: http://www.youtube.com/playlist?list=PLQVvvaa0QuDc4SQhfpm6XHO0l-1Ybtur2
Code for this tutorial can be found on Sentdex.com
Sentdex.com
Facebook.com/sentdex
Twitter.com/sentdex
How to make graphical windows for user-friendliness within python, using wxPython!
Playlist
Uploads from sentdex · sentdex · 7 of 60
1
2
3
4
5
6
▶
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Matplotlib Python Tutorial Part 1: Basics and your first Graph!
sentdex
Python Encryption Tutorial with PyCrypto
sentdex
Python's Logging Function
sentdex
wxPython Tutorials 1: Making Windows GUIs with Python : Installing + 1st window!
sentdex
wxPython Tutorials 2: Making Windows GUIs with Python: Customizing Window Parameters
sentdex
wxPython Programming Tutorial 3: Menu Bar and Menu Button
sentdex
wxPython Programming Tutorial 4: Panels
sentdex
wxPython Programming Tutorial 5: User Input Saved To Variables
sentdex
wxPython Programming Tutorial 6: Multiple Choice Input
sentdex
wxPython Programming Tutorial 7: Adding Static Text and Colors
sentdex
wxPython Programming Tutorial 8: Custom Button Images
sentdex
wxPython Programming Tutorial 9: Tool Bar Items and Sub Menus!
sentdex
Basic PHP Tutorial 13: Multi-dimensional Array
sentdex
Basic PHP Tutorial 15: Functions and Global Variables
sentdex
Basic PHP Tutorial 12: Associative Array
sentdex
Basic PHP Tutorial 14: Foreach loop
sentdex
Basic PHP Tutorial 16: Include and Require
sentdex
Basic PHP Tutorial 7: Assignment, comparison and Logical operators
sentdex
Basic PHP Tutorial 4: Variables and Comments
sentdex
Basic PHP Tutorial 11: Arrays part 1, basic array
sentdex
Basic PHP Tutorial 6: If else and else if conditionals cont'd
sentdex
Basic PHP Tutorial 1: Intro to PHP
sentdex
Basic PHP Tutorial 3: HTML with PHP
sentdex
Basic PHP Tutorial 9: While Loop
sentdex
Basic PHP Tutorial 10: Switch Statement
sentdex
Basic PHP Tutorial 2: Print and Echo
sentdex
Basic PHP Tutorial 5: If else and else if conditional statements
sentdex
Basic PHP Tutorial 8: Arithmatic Operators: Doing math with php
sentdex
Basic PHP Tutorial 17: User Input Form Example / String Manipulation
sentdex
Basic PHP Tutorial 18: HTML Entities and forms cont'd
sentdex
Basic PHP Tutorial 19: Finding words in strings
sentdex
Basic PHP Programming Tutorial 20: Saving to a File / writing and appending
sentdex
Basic PHP Programming Tutorial 22: Hashing part 2: salting
sentdex
Basic PHP Programming Tutorial 23: Variables in Strings and tokenizing
sentdex
Basic PHP Programming Tutorial 21: MD5 Hashing For Security
sentdex
Basic PHP Programming Tutorial 24: String similarity
sentdex
Basic PHP Programming Tutorial 25: Time and Time stamps
sentdex
Basic PHP Programming Tutorial 26: Die and Exit
sentdex
Basic PHP Programming Tutorial 27: MySQL Databases Part 1
sentdex
Basic PHP Programming Tutorial 28: MySQL Database Part 2: Reading From Database
sentdex
Basic PHP Programming Tutorial 29: MySQL Database Part 3: Inputting Data
sentdex
Basic PHP Programming Tutorial 30: MySQL database in Use
sentdex
Django Tutorial Web Development with Python Part 1: Installing Django
sentdex
Python Tutorial: File Deletion and Folder Deletion / directory deletion
sentdex
Python Tutorial: How to Rename Files and Move Files with Python
sentdex
3D Graphs in Matplotlib for Python: Basic 3D Line
sentdex
3D Plotting in Matplotlib for Python: 3D Scatter Plot
sentdex
3D Charts in Matplotlib for Python: Multiple datasets scatter plot
sentdex
Sikuli Tutorial 1: Visually programming in python!
sentdex
Sikuli Tutorial 2: Program visually in python!
sentdex
Sikuli Tutorial 3: Program visually in python!
sentdex
3D Bar Charts in Python and Matplotlib
sentdex
3D Plane wire frame Graph Chart in Python
sentdex
Raspberry Pi Part 1 Introduction
sentdex
Raspberry Pi Part 8: First Download and Update! (Firmware)
sentdex
Raspberry Pi Part 10: How to set up a Linux Web Server on your Pi
sentdex
Raspberry Pi Part 11: Remote Desktop
sentdex
Twitter Analysis: How to rank a user's influence
sentdex
GPIO Tutorial for Pi Part 2 - Programming the GPIO
sentdex
GPIO Tutorial for Raspberry Pi Part 1 - Setting up
sentdex
More on: Backend Performance
View skill →Related Reads
📰
📰
📰
📰
Ten files is not a budget
Dev.to AI
Inteligencia artificial para empresas: cómo está cambiando la forma de trabajar
Medium · SEO
SmartKirana: Building an AI-Powered Quick-Pickup and Inventory System for Neighborhood Stores
Medium · Machine Learning
Top 5 Custom AI Development Agencies in the US (2026)
Medium · SEO
🎓
Tutor Explanation
DeepCamp AI