first commit
This commit is contained in:
commit
ecb065332f
1
data/Material_type_import.csv
Normal file
1
data/Material_type_import.csv
Normal file
@ -0,0 +1 @@
|
|||||||
|
"id";"name";"loss_percent"
|
||||||
|
5
data/material_type.csv
Normal file
5
data/material_type.csv
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Пластичные материалы;0,12%
|
||||||
|
Добавка;0,20%
|
||||||
|
Электролит;0,15%
|
||||||
|
Глазурь;0,30%
|
||||||
|
Пигмент;0,25%
|
||||||
|
7
main.py
Normal file
7
main.py
Normal 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
16
test.py
Normal 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()
|
||||||
Loading…
Reference in New Issue
Block a user