User Tools

Site Tools


apuntes:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apuntes:python [2019/05/12 20:04] – [Programación Orientada a Objetos] Santiago Faciapuntes:python [2019/06/11 20:40] (current) – [GUI] Santiago Faci
Line 1019: Line 1019:
  
 <code python> <code python>
-import sqlite3 
- 
-conexion = sqlite3.connect("datos.db") 
-cursor = conexion.cursor() 
- 
 # Ejemplo que muestra como conectar y crear  # Ejemplo que muestra como conectar y crear 
 # una Base de Datos SQLite # una Base de Datos SQLite
Line 1248: Line 1243:
  
     def __crearVentana(self):     def __crearVentana(self):
- 
         self.__tfTexto = tk.Text(self, width=20, height=1)         self.__tfTexto = tk.Text(self, width=20, height=1)
         self.__tfTexto.grid()         self.__tfTexto.grid()
apuntes/python.txt · Last modified: 2019/06/11 20:40 by Santiago Faci