hplip 3.14.10, no python-devel
300
This answer suggests quite a long list of dependencies you have to install before running the script, but I got the same error as you and simply did sudo apt-get install python-dev
, then re-ran the script.
It's installed now and I can see my HP OfficeJet Pro 8620 printer.
Author by
not here
Updated on September 18, 2022Comments
-
not here almost 2 years
I am experimenting with
tkinter
in python.At the moment I have created a script which creates a login window which has no function what so ever. I have tried playing around with the
def callback():
andcommand=callback
. So I tried making it so that when you press the "Login" button, you can do something (e.g. show loading... and clear text boxes.)Here is the code:
import tkinter window = tkinter.Tk() window.title("Login") window.geometry("250x150") window.configure(background="#FFFFFF") label = tkinter.Label(window, text="Please Login to continue:", bg="#FFFFFF", font=("PibotoLt", 16)) label.pack() label = tkinter.Label(window, text="username:", bg="#FFFFFF") label.pack() entry = tkinter.Entry(window) entry.pack() label = tkinter.Label(window, text="password:", bg="#FFFFFF") label.pack() entry = tkinter.Entry(window) entry.pack() def callback(): button = tkinter.Button(window, text="Login", fg="#FFFFFF", bg="#000000") button.pack() label = tkinter.Label(window, text="Loading...", bg="#FFFFFF", command=callback) window.mainloop()
-
Richard Holiday over 9 yearsno one has an idea on how to fix the problem
-
Urosh T. over 5 yearsSo the question is - how to make a button?Also, please format the code with the
code markdown
-
stovfl over 5 yearsMove this
.Label(..., command=callback
to the.Button(..., command=callback
and add a ` print('Hello World)'` to yourdef callback():
. -
not2qubit over 5 yearsI tried to clarify the code but I'm not 100% I got the indentation right.
-
-
Almino Melo over 7 years
sudo apt-get install python-dev
worked for me on Debian 8.6 64bits