sábado, 12 de fevereiro de 2022

remembering the tkinter course

 $ sudo apt-get install python3-tk
$ sudo apt-get install python3.6-tk

(Venv2) f3l1p@VsTr:~/Venv/tkinter$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:    18.04
Codename:    bionic
 

(Venv2) f3l1p@VsTr:~/Venv/tkinter$ sudo apt-get install python3-tk
[sudo] password for f3l1p:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-tk is already the newest version (3.6.9-1~18.04).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

List files intalled:
$ dpkg-query -L python3-tk

======================================================================
======================================================================
====    ====    Do not name the file as tkinter.py !!!    ====    ====
=================== File: tktkinter.py ===============================
from tkinter import * #1 first steps
mw = Tk() #2 main window (mw)
#4 root.mainloop() #3
class App():#5
    def __init__(self):#6
        self.mw = mw#12
        self.scrn()#11
        mw.mainloop()#7
    def scrn(self):#9
        self.mw.title('Customer Registration')#10
        self.mw.configure(background= '#888888')#13
        self.mw.geometry('800x400')#14 start size
        self.mw.resizable(True, True)#15 resize window
        self.mw.maxsize(width=1300, height=650)#16
        self.mw.minsize(width=400, height=400)#17
App()#8

''' 2022 0213 06:24
Curso Python Tkinter - Aula 1 - Criação e configuração da janela - Tutorial
https://youtu.be/RtrZcoVD1WM




'''
======================================================================
 

Nenhum comentário:

Postar um comentário