Комментарии:
the best ever love you so much man helped with my project
Ответитьnice
ОтветитьGrasias amigo, + un nuevo sub
ОтветитьAfter convert, double click .py shows cmd prompt and voila. Nothing happened. What?
ОтветитьBro when i click the py file it just opens the cmd and closes pls help
ОтветитьNice
ОтветитьSir how to convert * to x and / to divide symbol
Pls give me rply
very very good sir
ОтветитьInstead of typing so many of those functions, you can create ONE function to capture and display all buttons.
def one_function(self, button) :
text = self.label.text()
self.label.setText(text+button)
Thats it... You then pass the character to the function using a lambda expression
self.button1.clicked.connect(lambda: self.one_function("1"))
You're welcome
You can just bind all (0-9) buttons with same function then. find sender button's text and append it. I know in C++, but should be similar in python.
In C++
void NumberButtonClicked()
{
QPushButton *btn = reinterpret_cast<QPushButton*>QObject::sender();
label->setText(label->text() + btn->text());
}
It is not complete, but just to show to sender().
bhai mere me Ui main window not defined error araha h , plz help
Ответитьbhai yr jb bhi m butoon me click kr rha hun to button ka text to label pe show ho rha hh pr
jase hi m koi ur button pe click kr rha hun to vo button bhi label pe aa rha hh pr picha button remove ho jaa rha hh label se
bhai solution batao
Bhai internshala wale python project me explanation ki bhi ek video bna de
Ответить