first commit

This commit is contained in:
Maxim 2026-05-15 11:51:38 +04:00
commit ecb065332f
5 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
"id";"name";"loss_percent"
1 id name loss_percent

5
data/material_type.csv Normal file
View File

@ -0,0 +1,5 @@
Пластичные материалы;0,12%
Добавка;0,20%
Электролит;0,15%
Глазурь;0,30%
Пигмент;0,25%
1 Пластичные материалы;0 12%
2 Добавка;0 20%
3 Электролит;0 15%
4 Глазурь;0 30%
5 Пигмент;0 25%

0
db.py Normal file
View File

7
main.py Normal file
View File

@ -0,0 +1,7 @@
import tkinter as tk
from tkinter import ttk, messagebox
import mysql.connector
PWD = 'pass'
DB = 'pozorisp_Zborovskiy'
F = 'Comic Sans MS',10

16
test.py Normal file
View File

@ -0,0 +1,16 @@
import mysql.connector
conn = mysql.connector.connect(
host='192.168.201.207',
user='pozorisp',
password='pozorisp',
database='pozorisp_Zborovskiy',
charset='utf8mb4',
)
cur = conn.cursor()
cur.execute("SELECT name FROM suppliers LIMIT 3")
for row in cur.fetchall():
print(row)
conn.close()