from time import sleep
from selenium import webdriver
from tkinter import *
import mysql.connector
from requests import exceptions
from bs4 import BeautifulSoup
import re
from proxy_manager_g4 import ProxyManager
from proxy_controller import ProxyChecker
class Uygulama():
def __init__(self):
self.veritabani()
self.pencere = Tk()
self.pencere.title("Gmail Bot")
self.pencere.config(bg="black")
self.pencere.geometry("1300x600+0+0")
proxylistelebtn = Button(self.pencere, text="Proxy ve Gmail Listele", bg="white", fg="black", activebackground="red", activeforeground="white", font=("Ubuntu", 12, "bold"),
command=lambda:self.proxylistele())
proxylistelebtn.place(x=50, y=0)
proxyvegmailolusturbtn = Button(self.pencere, text="Proxy ve Gmail Oluştur", bg="white", fg="black", activebackground="red",
activeforeground="white", font=("Ubuntu", 12, "bold"),
command=lambda: self.proxyolustur())
proxyvegmailolusturbtn.place(x=260, y=0)
# Create A Main Frame
self.proxylisteleframegizlimi = 0
self.proxylisteleframe = Frame(self.pencere, bg="white", width=1200, height=500)
self.proxyolusturframegizlimi = 0
self.proxyolusturframe = Frame(self.pencere, bg="white", width=1200, height=500)
self.pencere.mainloop()
def proxylistele(self):
self.proxylisteleframegizlimi = 0
if self.proxyolusturframegizlimi == 1:
self.proxyolusturframe.place_forget()
self.proxylisteleframe.place(x=50, y=50)
a = 0
for i in range(0, 1000):
deneme = Label(self.proxylisteleframe)
deneme.config(text=f"{i}", bg="white", fg="black", font=("Ubuntu", 12, "bold"))
deneme.place(x=50, y=a)
a += 40
self.proxylisteleframegizlimi += 1
def proxyolustur(self):
self.proxyolusturframegizlimi = 0
if self.proxylisteleframegizlimi == 1:
self.proxylisteleframe.place_forget()
self.proxyolusturframe.place(x=50, y=50)
self.proxyolusturframegizlimi += 1
def veritabani(self):
self.db = mysql.connector.connect(
host="localhost",
user="barron4335",
password="1968Hram",
database="instagramdatabase"
)
self.database = self.db.cursor(dictionary=True)
if __name__ == '__main__':
Uygulama()
Yukarıda kodları paylaştım sorunum ise
self.proxylisteleframe içerisinde scrollbar nasıl oluşturabilriim ?
not : canvas denedim yapamadım