Skip to content

Instantly share code, notes, and snippets.

View carlosmmairena's full-sized avatar
🎯
Focusing

Carlos Mairena carlosmmairena

🎯
Focusing
View GitHub Profile
@carlosmmairena
carlosmmairena / RepositorioPostgres.py
Created March 30, 2021 06:09
Clase connection Python a PostgreSQL
import psycopg2
from configparser import ConfigParser
class Postgres():
""" Connect to the PostgreSQL database server """
connection = None
def __init__(self):
import tkinter
from tkinter import CENTER, ttk
lista_matriculas = []
ventana = tkinter.Tk()
ventana.geometry('500x500')
# etiqueta de mensaje
mensaje_lbl = tkinter.Label(ventana)
mensaje_lbl.grid(row=0, column=1)