How to create a window using python

Hello guys, we all usually get hectic when it comes to coding. The best comes when we need to design GUI. This post is mostly to that audience who is new to Python. All we need is an IDE. I'll prefer Pycharm for you all but I'm using Kali. If you are using Kali too, then obviously you don't need any IDE at all.
There is only a single recommendation for you all that you must install python interpreter as pycharm don't have interpreter inbuilt in it. So all you need to open Pycharm, write this code and run it.
So let's go...

Step 1: We are going to import Tkinter.



# To import just type command in the terminal/pycharm: from tkinter import *

Step 2: Now initialize a variable win and assing it value Tk(). By doing this a window will appear on your screen.



Step 3: Let's put a label in it and code will be as follows :

# Mylabel=Label(win, text="My GUI")
    then we will pack this label using 
    MyLable.pack()
    and remember python is case sensitive.


Step 4 : Another step is to establish a main loop.this main loop will allows the window to run for infinite time. when we make a window, we want it to be open till we want, this main loop will enable that window in an infinite loop till the termination of the window using close button and code is :

# win.mainloop()

Thank you

11/Post a Comment/Comments

  1. 🌝 HAVE YOU LOST YOUR HARD EARNED MONEY TO A BINARY OPTION SCAM?? DO YOU WANT TO RECOVER IT ALL? DO NOT GIVE UP, I HAVE GOOD NEWS FOR YOU!!!

    First of all, in my opinion, Binary options trading is dead — though few will mourn it, but recovery is 100% possible and many fall for scams other than legit hackers.

    Dearly beloved readers. We are gathered here today to celebrate the passing of binary options, the much-hated financial instrument.

    🌟Traded by risk-hungry speculators, binaries brought riches to the few and hefty losses to the many. They inhabited that tantalising grey area between financial investment and gambling, luring us in with promises of mega returns and pictures of people on Twitter with Lamborghinis. Instead, most were left red-faced with empty pockets.

    🌟Many hundreds of people around the world are targeted each day by disreputable fraudulent brokers. They deliberate target novice investors in contravention of the trading regulations. In many cases the investors who are targeted are completely unfamiliar with the markets and do not recognise that they are dealing with a bogus trading platform. The fraudulent brokers rely on this lack of knowledge to extract as much money as possible before closing down the account, cutting all contact and disappearing. The hapless investor then begins to suspect that they have been scammed. The targeted individuals have frequently lost considerable sums of money and their beginner status means that they have little idea of where to turn for help. Now, investors like you run to an unknown hacker who are secretly scammers to help recorver your fund of which you will be disappointed at the end.

    🌟We are a group of hackers called *HackerOne*. We consist of top skilled individual hackers coming together to render services to as many people out there on the common web, we all have operated in the dark web and have carried out classified job so we're bringing our skills here to the common web cause we know how difficult it is to access a service of a real hacker out here.

    🌟HackerOne has a track record of recovery in relation to financial fraud, with many strategies and tactics to compel the fraudulent broker to restore funds to their former clients, then extract your files and documents, Decrypt your Transaction Details and some Technical Hacking Procedures follows then you have your money recovered in Bitcoins.

    You Can Also Contact us for other Technical Hacking Services you desire Such as:
    * WEBSITE HACKING
    * PHONE HACKING (giving you Unnoticeable access to everything Happening on the Target’s Phone)
    * LOCATION TRACKING
    * CLEARING OF CRIMINAL RECORDS
    * SOCIAL MEDIA ACCOUNTS HACKING etc

    For further information, please contact us on our Email address bellow:
    >>
    hacktech@hackermail.com
    Cheers!!

    ReplyDelete
    Replies
    1. infidelity in marriage is never a thing of joy, i was battling with infections in marriage , painful right. i'm not so ashamed to say this because i'll like this to serve as an eye opener to other young couples out there. my ex-husband was a university lecturer and was always involved with extra marital affairs. i found my self in and out of hospitals treating myself of STDs , i had to get an ethical hacker in QUADHACKED{@}GMAIL dot COM, to help me clone his phone and social media platforms in Whatsapp and Facebook messenger . i was able to gather several proofs from the the hack he was able to help me with. i'm so thankful and appreciative. he makes me feel invincible going into any relationship now . knowing fully well i'll be sure of my spouses intention. reach them through there email describing your hack needs and exploits .
      ALSO, if you are in need of a legit hacker for DELETING OF BLEMISHES FROM CREDIT REPORT
      CREDIT SCORE INCREASE
      PHONE CLONE
      PHONE TAP, SPY
      HACK YOUR CHEATING SPOUSE TO FIND OUT WHAT THEY BEEN UP TO
      MORTGAGE LOAN LENDERS AND APPROVALS .
      EMAIL HACKS
      WHATSAPP, MESSENGER AND OTHER SOCIAL MEDIA APP
      DELETING OF CRIMINAL RECORD AND EVICTION HISTORY
      send a descriptive message to QUADHACKED{@}GMAIL dot COM

      Delete
    2. investing in oil and gas has and is still making a lot of people " very RICH". Investors in oil and gas are getting rich daily. All you need is a secured and certified strategy that will keep your invested capital safe by opting out with no withdrawer crunch. A considerable number of investors worldwide have seen gains of 75,063%, personally I have made over 600%. For example I started investing with $1,000 and I made $3,000, $3,500- $5,000 weekly. Last year at the start of the year, I increased my invested capital to $10,000 and I made approximately $105,000 before the end of year. I've never seen profit opportunities like this before in any market even when other traders complain of losses. Now for the doubters, not only is it possible, it's actually happening right now. All you need is a good and secured strategy, a good investment platform, Appetite and market conditions. Incase you are interested in venturing into investing or perhaps you are trading and has been losing, feel free to contact total companyat E-mail: total.company@aol.com I will
      be sure to guide and assist you.

      Delete
  2. 🌝 HAVE YOU LOST YOUR HARD EARNED MONEY TO A BINARY OPTION SCAM?? DO YOU WANT TO RECOVER IT ALL? DO NOT GIVE UP, I HAVE GOOD NEWS FOR YOU!!!

    First of all, in my opinion, Binary options trading is dead — though few will mourn it, but recovery is 100% possible and many fall for scams other than legit hackers.

    Dearly beloved readers. We are gathered here today to celebrate the passing of binary options, the much-hated financial instrument.

    🌟Traded by risk-hungry speculators, binaries brought riches to the few and hefty losses to the many. They inhabited that tantalising grey area between financial investment and gambling, luring us in with promises of mega returns and pictures of people on Twitter with Lamborghinis. Instead, most were left red-faced with empty pockets.

    🌟Many hundreds of people around the world are targeted each day by disreputable fraudulent brokers. They deliberate target novice investors in contravention of the trading regulations. In many cases the investors who are targeted are completely unfamiliar with the markets and do not recognise that they are dealing with a bogus trading platform. The fraudulent brokers rely on this lack of knowledge to extract as much money as possible before closing down the account, cutting all contact and disappearing. The hapless investor then begins to suspect that they have been scammed. The targeted individuals have frequently lost considerable sums of money and their beginner status means that they have little idea of where to turn for help. Now, investors like you run to an unknown hacker who are secretly scammers to help recorver your fund of which you will be disappointed at the end.

    🌟We are a group of hackers called *HackerOne*. We consist of top skilled individual hackers coming together to render services to as many people out there on the common web, we all have operated in the dark web and have carried out classified job so we're bringing our skills here to the common web cause we know how difficult it is to access a service of a real hacker out here.

    🌟HackerOne has a track record of recovery in relation to financial fraud, with many strategies and tactics to compel the fraudulent broker to restore funds to their former clients, then extract your files and documents, Decrypt your Transaction Details and some Technical Hacking Procedures follows then you have your money recovered in Bitcoins.

    You Can Also Contact us for other Technical Hacking Services you desire Such as:
    * WEBSITE HACKING
    * PHONE HACKING (giving you Unnoticeable access to everything Happening on the Target’s Phone)
    * LOCATION TRACKING
    * CLEARING OF CRIMINAL RECORDS
    * SOCIAL MEDIA ACCOUNTS HACKING etc

    For further information, please contact us on our Email address bellow:
    >>
    hacktech@hackermail.com
    Cheers!!

    ReplyDelete
  3. Knowledgable post... Keep posting

    ReplyDelete
  4. hi, when you have lost a lot of money trying to get the best hacker to work with? it gets tiring but at the end of the day, you get what you want as i have when i finally worked with wrathgod007@gmail.com. if you need to confirm if your spouse is cheating, contact him, if you need to gain access into any email or social media account, contact him, if you need your grades, credit score up, contact him, if you need to access any website or database or clear criminal records, contact him. He did a marvelous job with my credit score from 437-766 and cleared my duis

    ReplyDelete
  5. My husband was so smooth at hiding his infidelity and I had no proof for months, I saw a recommendation about a Private investigator and decided to give him a try.. the result was incredible because all my cheating husbands text messages, whatsapp, facebook and his iphone conversations was sent directly to my Personal computer. Mr James helped me put a round-the-clock monitoring on him and I got concrete evidence and gave it to my lawyer..I say no to infidelity if your husband is an expert at hiding his cheating adventures contact him through Gmail he will help you(Worldcyberhackers) or WhatsApp : +12678773020

    ReplyDelete
  6. Hi, I'm Olivia. I have been a victim of online scams from fake hack gurus but since i have worked with someone i was actually referred to by 3 different people and saw reviews about him online too then i knew Wrath God is a tested and trusted hack genius, i contacted him because of some old emails and i needed access to and help with my credit score/report and he did a marvelous job with helping with my credit report with step by step visual process. About the emails, he provided access within 6 hours, pretty fast. Communicated via wrathgod007@gmail.com and he came through always, he is also part of the team that created the Lokd secure unhackable phone, you can check on it and also purchase the phone, just ordered mine.

    ReplyDelete
  7. definitely if you're getting a trusted ethical hacker to help you with hack or clone of your spouse phones or even their social media accounts, like messenger, whatsapp instagram, and mails, etc. especially for spouses in distant relationship I will recommend you to this hacker with the email address, superior.hack WITH . he has helped me on several hack jobs since my friend introduced him to me, he's been so spectacular. for obvious reasons, I would not want to go into details on how he's helped me hack my spouses social media accounts and even my friends when they gossip.
    for relative hack jobs ranging from
    accounts hack
    CREDIT SCORE INCREASE
    CREDIT REPORT FIX
    EMAIL ACCOUNTS HACK
    WHATSAPP AND OTHER SOCIAL MEDIA HACK
    UNLOCK OF PHONES OF DATE / LATE RELATIVES
    and some other relative hack job, just hit him up
    SUPERIOR.HACK@GMAIL.COM OR TEXT/CALL(+16692252253), thumbs up for a job well done, that's my review

    ReplyDelete
  8. investing in oil and gas has and is still making a lot of people " very RICH". Investors in oil and gas are getting rich daily. All you need is a secured and certified strategy that will keep your invested capital safe by opting out with no withdrawer crunch. A considerable number of investors worldwide have seen gains of 75,063%, personally I have made over 600%. For example I started investing with $1,000 and I made $3,000, $3,500- $5,000 weekly. Last year at the start of the year, I increased my invested capital to $10,000 and I made approximately $105,000 before the end of year. I've never seen profit opportunities like this before in any market even when other traders complain of losses. Now for the doubters, not only is it possible, it's actually happening right now. All you need is a good and secured strategy, a good investment platform, Appetite and market conditions. Incase you are interested in venturing into investing or perhaps you are trading and has been losing, feel free to contact total companyat E-mail: total.company@aol.com I will
    be sure to guide and assist you.

    ReplyDelete

  9. Are you interested in the service of a hacker to get into a phone, facebook account, snapchat, Instagram, yahoo, Whatsapp, get verified on any social network account, increase your followers by any amount, bank wire and bank transfer. Contact him on hackintechnology@gmail.com +12132951376(WHATSAPP)

    ReplyDelete

Post a Comment

Previous Post Next Post