Python Calculator App Using Qt Designer || GUI based calculator

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ธ.ค. 2024

ความคิดเห็น • 27

  • @7souna447
    @7souna447 ปีที่แล้ว

    the best ever love you so much man helped with my project

  • @nivektseb
    @nivektseb 4 ปีที่แล้ว +10

    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

    • @thokalasaidivya28
      @thokalasaidivya28 3 ปีที่แล้ว

      How to convert * to x and / to divide symbol

  • @keshav51337
    @keshav51337 4 ปีที่แล้ว +1

    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_castQObject::sender();
    label->setText(label->text() + btn->text());
    }
    It is not complete, but just to show to sender().

  • @rajashehryar2002
    @rajashehryar2002 ปีที่แล้ว

    nice

  • @vandungbui5610
    @vandungbui5610 3 ปีที่แล้ว +1

    After convert, double click .py shows cmd prompt and voila. Nothing happened. What?

  • @himanshubhatt2545
    @himanshubhatt2545 3 ปีที่แล้ว

    Nice

  • @Aarch_64
    @Aarch_64 3 ปีที่แล้ว +1

    Grasias amigo, + un nuevo sub

  • @anwaruddin2
    @anwaruddin2 3 ปีที่แล้ว

    very very good sir

  • @thokalasaidivya28
    @thokalasaidivya28 3 ปีที่แล้ว +2

    Sir how to convert * to x and / to divide symbol
    Pls give me rply

    • @harshbansal8705
      @harshbansal8705 3 ปีที่แล้ว +1

      For × symbol, you can press and hold Alt key and then press 0 2 1 5 on number pad. Similarly, you can search the Alt code for division symbol on Google.

  • @gyaniguru7894
    @gyaniguru7894 4 ปีที่แล้ว +1

    Bhai internshala wale python project me explanation ki bhi ek video bna de

  • @kevinjc6501
    @kevinjc6501 3 ปีที่แล้ว

    Bro when i click the py file it just opens the cmd and closes pls help

    • @theguywithnoname4745
      @theguywithnoname4745 3 ปีที่แล้ว +1

      Make sure you installed pyqt5 as pip install and IDLE

  • @tejaspoojary5397
    @tejaspoojary5397 4 ปีที่แล้ว +1

    bhai mere me Ui main window not defined error araha h , plz help

  • @AbhishekSharma-uy1zv
    @AbhishekSharma-uy1zv 4 ปีที่แล้ว +1

    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

    • @AbhishekSharma-uy1zv
      @AbhishekSharma-uy1zv 4 ปีที่แล้ว

      bhai jase 1 pe click krke 1 label pe aa rha hh
      pr jase hi m button2 pe click kr rha hun to label se 1 remove ho jaa rha hh sirf 2 hi show ho rha hh

    • @madnessoftech6908
      @madnessoftech6908  4 ปีที่แล้ว +1

      Bhai ap string ko append nhi kr rhe
      Apne code me dekhe
      Phle apko jo v lebel me hai use store krna hai
      Than jo stor kiya hai
      Uska sath apko lebel me set krna hai
      Jaise ki hmne
      Ek text variable liya ukme stor kr liya
      Ab jb koi button click kro than
      Jaise ki hm 1 click kr rhe to
      self.lebel.setText(text+"1")
      Video ke coding part dekhe ap
      Usme method_1 hoga use ap apne code se match kre

    • @AbhishekSharma-uy1zv
      @AbhishekSharma-uy1zv 4 ปีที่แล้ว

      @@madnessoftech6908 thanks bro for helping right now i get my mistake

  • @deepakbisht927
    @deepakbisht927 4 ปีที่แล้ว +1

    Hello sir
    Please give me the source code of this python calculator . I shall make a minor project.so plz give me the source code .

    • @madnessoftech6908
      @madnessoftech6908  4 ปีที่แล้ว +1

      Okk find link in discription box

    • @deepakbisht927
      @deepakbisht927 4 ปีที่แล้ว +1

      @@madnessoftech6908 Thanks a lot sir 🔥❤️

  • @glav12
    @glav12 10 หลายเดือนก่อน

    индус скинь кодик а