NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

import sqlite3
from tkinter import *
from tkinter import messagebox
from tkinter.ttk import *


class connect_db:
def __int__(self, db_name):
self.db_name = db_name
self.connector = sqlite3.connect(self.db_name)
self.cursor = self.connector.cursor()

def exucute_sql(self, sql_txt):
pass

def close_db(self):
pass


class my_window:
def __int__(self):
self.window = Tk()
self.window.geometry("900x400")
self.create_frame()
self.window.mainloop()




def create_frame(self):
self.notebook = Notebook()
style = Style()
style.configure(style:"TFrame", bg="lightblue")
self.notebook.pack(expand=True, fill=BOTH)
self.frame1 = Frame(self.notebook)
self.frame2 = Frame(self.notebook)
self.frame3 = Frame(self.notebook)

self.frame1.pack(fill=BOTH, expand=True)
self.frame2.pack(fill=BOTH, expand=True)
self.frame3.pack(fill=BOTH, expand=True)

self.notebook.add(self.frame1, text="Товары")
self.notebook.add(self.frame2, text="Купить")
self.notebook.add(self.frame3, text="Продать")

self.frame_tovar()
self.frame_buy()
self.frame_sell()

def frame_tovar(self):
self.table_tov =Treeview(self.frame1, columns=["tovar", "price"]),
show="headings")
self.table_tov.heading("tovar", text="Товар")
self.table_tov.heading("price", text="Цена")
self.table_tov.heading("tovar", width = 150, anchor ="c")
self.table_tov.heading("price", width=150, anchor="c")
self.table_tov.place(x=10, y=10)


self.lb_name = Label(self.frame1, text="Наименование тов:"
front="Arial 12", bg="lightblue")
self.lb_name.place(x=350, y=20)

self.entry_name = Entry(self,frame1,
textvariable=self.tovar_name, front="Arial 12")
self.entry_name.place(x=350, y=60)

self.tovar_price = DoubleVar()
self.lb_name.Label(self.frame1, text="Цена товара:", front="Arial",
bg="Lightblue")
self.lb_name.place(x=350, y=100)
self.entry_price = Entry(self.frame1, textvariable=self.tovar_price,
bg="Arial")
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.