State Capital Radio Buttons - Part 6 - Python Tkinter GUI Tutorial #57

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

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

  • @Codemycom
    @Codemycom  4 ปีที่แล้ว

    ▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel:
    bit.ly/2UFLKgj bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN

  • @hossenmuradrakib6963
    @hossenmuradrakib6963 4 ปีที่แล้ว

    Great job!

  • @cro732
    @cro732 2 ปีที่แล้ว

    Salve, vorrei sapere se si può fare un codice di pythom per sentire la radio web online. Grazie o

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

    Hey, John I am not able to put the image

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

      put the image...what?

  • @musakayasimp6456
    @musakayasimp6456 4 ปีที่แล้ว

    hello sir when i was writing the code i faced this error i tried to fix the error from the internet but i couldnt figure it i did what they did but nothing happened this is the code :
    radiobtn1 = Radiobutton(country_capitals_frame, text=our_state_capitals[answer_list[0]], variable=capital_radio, value=1).pack()
    radiobtn2 = Radiobutton(country_capitals_frame, text=our_state_capitals[answer_list[1]], variable=capital_radio, value=1).pack()
    radiobtn3 = Radiobutton(country_capitals_frame, text=our_state_capitals[answer_list[2]], variable=capital_radio, value=1).pack()
    and the error is list index out of range i dont see any problems cause i started from 0 so whats the problem i dont get it please help me!!

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      What's your answer_list look like?

    • @musakayasimp6456
      @musakayasimp6456 4 ปีที่แล้ว

      @@Codemycom just like you did it

    • @musakayasimp6456
      @musakayasimp6456 4 ปีที่แล้ว

      @@Codemycom global our_country_capitals
      our_country_capitals = {
      'argentina':"buenos aires",
      'france':"paris",
      'iraq':"baghdad",
      'palastine':"al qods",
      'russia':"moscow",
      'saudiarabia':"riyadh",
      'spain':"madrid",
      'sweden':"stockholm",
      'texas':"austin",
      'turkey':"ankara",
      'uae':"abu dhabi",
      'unitedkingdom':"london"
      }
      the thing is that am trying to do countries capitals instead of the state capitals

    • @johngiangrande2996
      @johngiangrande2996 4 ปีที่แล้ว

      @@musakayasimp6456 It's possible your answer_list is empty at the time of these calls to it. Perhaps, comment out these radio button definitions and replace it with a print(answer_list) statement to determine if it has values. If not, the problem is probably in your while loop that is adding values to the answer_list.

    • @johngiangrande2996
      @johngiangrande2996 4 ปีที่แล้ว

      @OverPowered OR you're referencing our_state_capitals instead of our_country_capitals?

  • @haseebali8139
    @haseebali8139 4 ปีที่แล้ว

    give your GitHub account

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

      github.com/flatplanet and maybe ask instead of demand in the future...