December 9, 2022

LazyPyScript v0.1.0

This is a simple python gui project with tkinter. As of now, it only displays a website IP address.

from tkinter import*
from tkinter import messagebox
import socket

def commandLineConsole(): 
     your_ip()   

def your_ip():
     if ip.get() == "":
         messagebox.showinfo("No INPUT", "INSERT A REAL DOMAIN NAME WITHOUT https://www LIKE google.com")
     else:    
         try:
             s = socket.gethostbyname(ip.get())
             var1 = str.upper(ip.get())+ ("\t") + ("IP ADDRESS:") + s + ("\n")
             commandLine.insert(END, var1)
         except:
             err = ("THIS DOMAIN NAME DOESN'T EXIST") + ("\n")
             commandLine.insert(END, err)
             messagebox.showerror("ERROR", "THIS DOMAIN NAME DOESN'T EXIST")

root = Tk()
root.resizable(0,0)# removes the maz=ximize button
root.title("LazyPyScript v0.1.0")
root.configure(background="#090909")
root.iconbitmap('C://you can delete this line or use your own
icon//skull.ico')
#variable for ip
ip = StringVar()
label1 = Label(root, text="Domain Like: google.com", background= "#090909", foreground = "#00ff00")
entry1 = Entry(root ,background = "#2f2f2f", foreground = "#00ff00", textvariable = ip)
button1 = Button(root, text="GET IP", background= "#090909", foreground = "#00ff00", command = commandLineConsole)
frame1 = Frame(root)
commandLine = Text(frame1, height = 15, width = 70 ,background = "#2f2f2f", foreground = "#00ff00")
scrollbar = Scrollbar(frame1, command=commandLine.yview)
label2 = Label(root, text = "ZOKIKISYSTEM", background= "#090909", foreground = "#00ff00")
label1.pack()
entry1.pack()
button1.pack()
frame1.pack()
scrollbar.pack(side="right", fill=Y)
commandLine.pack()
commandLine['yscrollcommand'] = scrollbar.set
label2.pack(side=LEFT)
root.mainloop()