1 00:00:00,000 --> 00:00:02,758 Hello, and welcome to this new section 2 00:00:02,789 --> 00:00:05,069 of the course. In this section, you're 3 00:00:05,069 --> 00:00:07,139 going to learn how to build graphical 4 00:00:07,139 --> 00:00:09,449 user interfaces with Python. And 5 00:00:09,449 --> 00:00:11,339 specifically, we're going to use the 6 00:00:11,369 --> 00:00:14,759 tkinter library for that. So in this 7 00:00:14,759 --> 00:00:16,469 section, you're not going to build any 8 00:00:16,469 --> 00:00:19,469 real world program, I'll introduce you 9 00:00:19,469 --> 00:00:21,850 to the tkinter library. And of course, 10 00:00:21,875 --> 00:00:23,849 to build a graphical user interface, a 11 00:00:23,849 --> 00:00:26,399 small program that can get you started 12 00:00:26,579 --> 00:00:28,499 with tkinter. And then in the next 13 00:00:28,499 --> 00:00:30,359 section, so once we are done with this 14 00:00:30,359 --> 00:00:32,279 section, in the next section, you're 15 00:00:32,279 --> 00:00:35,009 going to learn how to interact with 16 00:00:35,039 --> 00:00:38,519 databases with Python. So we'll be using 17 00:00:38,544 --> 00:00:42,719 Python as a wrapper of SQL code, so that 18 00:00:42,719 --> 00:00:45,359 we can store data in a database, query, 19 00:00:45,359 --> 00:00:49,139 data, delete, and so on and so forth. So 20 00:00:49,139 --> 00:00:51,269 that was the section after this one, and 21 00:00:51,269 --> 00:00:53,249 then in the third section, after these 22 00:00:53,249 --> 00:00:55,619 two sections, we're going to build a 23 00:00:55,619 --> 00:00:58,619 real world program. And that program is 24 00:00:58,949 --> 00:01:02,009 this one here. So I called it bookstore, 25 00:01:02,099 --> 00:01:05,039 and what this does is it allows you to 26 00:01:05,039 --> 00:01:08,819 store book information in a database, and 27 00:01:08,819 --> 00:01:12,299 this is a graphical user interface. So 28 00:01:12,299 --> 00:01:15,269 this program is made in two parts. You 29 00:01:15,269 --> 00:01:17,639 have a graphical user interface, which are 30 00:01:17,639 --> 00:01:19,019 these buttons here, which are called the 31 00:01:19,019 --> 00:01:21,479 widgets, and this was built with 32 00:01:21,509 --> 00:01:24,389 tkinter. And then you have the backend, 33 00:01:24,419 --> 00:01:28,079 which consists of code that communicates 34 00:01:28,079 --> 00:01:30,269 with the database. So for 35 00:01:30,269 --> 00:01:32,009 example, if we press the View All 36 00:01:32,009 --> 00:01:34,559 button, we are acquiring the database to 37 00:01:34,559 --> 00:01:39,509 load all the books for us. So we have 38 00:01:39,509 --> 00:01:41,759 the Title. So if you press one of them, 39 00:01:42,239 --> 00:01:44,969 you get the Title here, the Author, and 40 00:01:44,969 --> 00:01:47,669 the Year of the book, and also the book 41 00:01:47,669 --> 00:01:49,859 identification number, which is called 42 00:01:49,889 --> 00:01:52,889 ISBN, you can also search for an entry. 43 00:01:52,889 --> 00:01:56,069 So if you want to search for another, 44 00:01:56,309 --> 00:01:58,289 you write the author name up here, and 45 00:01:58,289 --> 00:02:00,659 press Search. And if you want to add an 46 00:02:00,659 --> 00:02:04,633 entry, you just type that in. 47 00:02:04,664 --> 00:02:08,334 [Author typing] 48 00:02:08,359 --> 00:02:14,399 And, yeah, something like that. Add Entry. And if 49 00:02:14,399 --> 00:02:16,979 you load them again, your entry should 50 00:02:16,979 --> 00:02:19,889 be here. So this is a program we're 51 00:02:19,889 --> 00:02:22,199 going to build two section after this 52 00:02:22,199 --> 00:02:24,929 one. So let me close this on here, and 53 00:02:25,769 --> 00:02:27,869 in the next lecture, I'll introduce you 54 00:02:27,869 --> 00:02:30,629 to the tkinter library. So we will be 55 00:02:30,629 --> 00:02:32,999 building some simple interfaces with 56 00:02:32,999 --> 00:02:35,489 some widgets. See you in the next lecture.