Jump to content

Recommended Posts

Posted (edited)
from tkinter import *
app = Tk()
app.title("D1 tech")
app.geometry('300x200+400+200')

#big/bash $ 'Sudo / etc / init.d / dbus restart'

def negrito():
negrito = '33[1m'
return negrito

b1 = Button(app, text = "Faq", width = 15)
b1.pack(side = "left", padx = 10, pady = 10)

b2 = Button(app, text = "APP adicionais!", width = 15)
b2.pack(side = "right", padx = 10, pady = 10)


app.Mainloop()

Se puder me ajudar ficarei grato!

Edited by thoga31
Tags code + GeSHi
Posted

Podes fazer algo do genero:


frame = Frame(app)
frame.pack()

url = "www.blabla.com"

def OpenUrl():
   webbrowser.open_new(url)

button = Button(frame, text="Faq", command=lambda aurl=url:OpenUrl(aurl))
button.pack(side = "left", padx = 10, pady = 10)
  • Vote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.