Error "ImportError: no module named tkinter" Programming Python

Hello

I'm writing a Python program. This program is supposed to do a bar with two buttons on it pop up.

However, I can't get this to work. The error is: "ImportError: no module named tkinter".

Here's the script of my program.

If someone knows enough about Python to know what I'm doing wrong, help would be greatly appreciated!

Thank you!

from tkinter import *.

class Application (Frame):
def say_Yeh (self):
Print ("Yeh! Your right button does something! »)

def createWidgets (self):
cottages. QUITBUTTON = Button (self)
cottages. QUITBUTTON ['text'] = "QUIT BUTTON"
cottages. QUITBUTTON ["fg"] = "red".
cottages. QUITBUTTON ['order'] = self.quit
       
cottages. QUITBUTTON.pack ({"side": "left"})

Self.do_something = Button (self)
Self.do_something ["text"] = 'CLICK TO DO SOMETHING BUTTON',
Self.do_something ["Command"] = self.say_Yeh
       
Self.do_something. Pack ({"side": "left"})

def _init_ (self, master = None):
Frame._init_ (self, master)
Self.Pack)
self.createWidgets)

root = Tk()
App = Application (master = root)
App.mainloop)
root. Destroy()

Sorry, I thought about it!

Tags: Windows

Similar Questions

  • Error "LoadLibrary failed with error 126: the module is not found ' at the launch of programs

    Original title:

    From some programs, the program starts partially, then a pop up message saying "LoadLibrary failed with error 126: the module is not found. When you click on the 'OK' button, the program stops. I had this problem with several graphics applications such as PSP and Rhinoceros 3D.

    Any suggestions what can be causing this "error 126"?

    type cmd and click the black box for it...

  • fix outlook express 6.0 - no double bond no longer work after installing then uninstalling opera. Get this error "error signature opera Module 15 (logdoc)? Open is no longer in the list programs.

    How can I repair Outlook Express 6.  I wanted to watch opera and downloaded and decided it wasn't for me so uninstalled.  Now while in Outlook Express 6 and I received an email with a link pointed out when I click on it I get the message error thie.  "ERROR INITIALIZING OPERA MODULE 15 (LOGDOC)" and if the link does not work. Outlook Express is not listed in my software screen add & REMOVE in control PANEL.

    FIXED! -The problem is in file types

    A link to solve HERE

    Thanks for trying!

  • Error: 126 specific module could not be loaded

    Hello, I tried to install the engineering program and when I click on the shortcut for the program to run the program I got an error. Error: 126 specific module could not be loaded. It cannot load the dll file. How to fix?

    Hello
     
    1. have you followed the steps that I mentioned earlier?
    2. What have been the results?
    3. This only happens with this application?

     
    Method 1:

    I also suggest you to install the application from an elevated command prompt. do so right-click on the configuration file and click on "run as administrator" and then check if the problem persists.
     
    Method 2:
     
    I also suggest you run the application in a clean boot state, and check if the problem persists. Clean boot to avoid software conflicts.
     
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135


    Note: do not forget to return the computer to normal after completing the troubleshooting by following the steps described in step 7.
  • Error 28000 (licensing module does not have) on the installation of Acrobat DC.

    I receive the error 28000 (licensing module does not have) on the installation of Acrobat DC. The installation is on a new computer Windows 10 Pro. Installation was attempted at the start using Dell's digital delivery program, but have also tried installing after downloading directly from Adobe. I used the cleaning tool and tried to install it again with the same result. I tried installing using the administrator account with all services non - Microsoft Startup and antivirus disabled and received the same error message. I restored the system to a point before the initial setup attempt was made and tried to install it again and received the same error.

    Hi jeffreym27466292,

    You can refer to another thread on the same question and try the steps.

    Error 28000. Installation of the Module of licensing Acrobat failed?

    Let me know how it goes.

    Concerning

    Sarojini

  • QuickTime export error: "an output module has stopped responding."

    I feel an odd export error when I use the Quicktime codecs:

    "After effects error: an output module is not responding." The file may be damaged or corrupted. You may need to restart After Effects. »

    Similarly, Adobe Media Encoder crashes when Quicktime codecs. No program does any progress at all before the blocking does not happen. At this point, I have to manually "end task" to exit. In addition, it seems not to matter of what I'm trying to export. For example, in the SOUL, I can just try to convert one video format to another and do hang, so I don't think that the problem is due to a problem with the settings of the source or the effects. Also, I'm not all multiprocessing since I did not really enough RAM for it. Other work of output modules, so I export only image sequences for now.

    System Specs:

    Windows 7 64 bit

    Intel i7 - 2600 k processor

    8 GB RAM

    GTX 580 GPU

    Software:

    Adobe CS6

    AE Plugins include Tracode Suite 12 and optical flares

    QuickTime 7.7.3

    Any ideas on that? I have seen very few references to this error in other places and not really found a solution that seems to apply to my situation. Thanks in advance for your help.

    Josh

    http://myleniumerrors.com/2013/01/11/26-142-5/

    Read it and the links that lead from there, then to understand what is blocking communication with QT.

    Mylenium

  • How to delete RUNDLL error meg in Add or remove programs

    How to delete RUNDLL error meg in Add or remove programs

    Please submit the full text of the error message without paraphrase.

    Please indicate which version of Windows you have, including the service pack (right click on desktop and select Properties, if you do not know).

    You get this error when you click Start > Control Panel > Add / Remove programs?

  • Cannot install "island extreme Stunts." game error an another Version of this program is already installed program is already installed. The installation of this version cannot continue.

    Original title: another Version of this program is already installed

    I decided to install an old game of mine - island of extreme aerial stunts.

    While trying to install it, I get the error that another Version of this program is already installed. The installation of this version cannot continue.
    It is not in my program list, and I can't get rid of the error.
    I have used before and uninstalled fine.
    Specifications of the PC:
    OS: Windows XP SP3
    Type: Home Edition
    Graphics card: NVidia GeForce FX 5500
    In any case to fix / install?

    Hello

    1. is the issue limited to this program?

    2 are you able to install other programs on the computer?

    You can try the steps in the link below to fix the problem.

    Problems installing and uninstalling programs on Windows computers

    http://support.Microsoft.com/kb/2438651

  • Reinstalling windows xp sp2 when I got an error that says that the installation program could not copy migregdb.ex_ from the cd.

    Setup cannot copy files?

    I did a reinstall of windows xp sp2 when I got an error that says that the installation program could not copy migregdb.ex_ from the cd. Please make sure the disk is in the e: drive and try again. I can locate the file and find no problem sound on the disc. Here is a list of the files that gave this same error.

    migregdb.ex_
    icwconn1.ex_
    ICWCONN2.ex_
    INETWIZ.ex_
    icwhelp.dl_
    icwutil.dl_
    icwrmind.ex_
    ICWDL.dl_
    icwx25a. COURIER
    icwx25b. COURIER
    icwx25c. COURIER
    ICWIP. COURIER
    Phone.ic_
    Phone.ve_
    State.ic_
    MSICW.is_
    MSN.is_
    support.ic_
    Msobshel.ht_
    ISIGNUP.ex_
    icwtutor.ex_
    icwres.dl_
    trialoc.dl_
    Oobeinfo.in_
    Oemlogo.gi_
    Mouse.ht_
    ISP.ht_
    Oempriv.ht_

    I know that the volume control does not work, and that the windows sounds are not listed, if you try to change the sounds on the system. As the noise of opening and closing session. The drive installed on a different hard disk on the same computer without error, it should not be dirty or damaged. If anyone can help with this please?

    JOEY

    To the file copy stage of the registry would be game.  It could be a permissions issue, you could mount the drive in a different Windows NT installation type and set the permissions.

    John

  • When I started > run > ncpa.cpl I get message error "file does not have a program associated with it... »

    XP SP3 with ALL critical & almost all critics not updated.

    I'm trying to follow the instructions in MS Article 871122 OTF Windows to configure my wireless network settings.

    But when I try to... Start > run > ncpa.cpl I get message error "file doesn't have a program associated with it".

    Thank you

    Steve

    HDTV - calibration.com

    Ok.  That's what steps 1 and 2 of the instructions in KB 871122.  You are now up to step 3.

    Now we will solve the problem "file does not have a program associated with it".  Go tohttp://www.dougknox.com/xp/file_assoc.htm .  Read the explanatory text and then click the 5th from the top:CPL file Association Fix download the zip file, extract the reg file, then run it.

    Because this association should not have broken, I suggest that you download, update and run

    Malwarebytes Anti-Malware and

    SuperAntiSpyware

  • Error 0 x 8242FFF after the programs are downloaded I can't install them, what should I do?

    Error message 0 x 8242FFF

    Hi Sherrysspot,

    Thanks for posting. What is the exact error that comes after download you programs?

    Thank you! Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Error message: windows\system32\difxapi32.dll isn't is either not designed to run on windows or it contains an error. Try to install the program by using the original installation media or contact your system administrator or the provider of software for

    Hello

    I keep getting error messages when I use the computer. It started two days after you download an update from Windows. A sample of the error is:

    C:\windows\system32\difxapi32.dll is not designed to run on windows or it contains an error. Try to install the program by using the original installation media or contact your system administrator or the provider of software for support.

    I use a vista. I don't know how to solve this problem, many want to help.

    Thank you.

    Hi Colinthebrave:

    Start with this little tool to help get rid of the error, once your system is stable again and then try to run your updates again.

    Thank you for your message; Let us know how it goes.

    o

    o The System Restore tool

    If the problem you are experiencing started occurring recently, you can use the System Restore tool. Using this tool, you can restore the computer to an earlier point in time. The tool using System Restore may not necessarily help you determine the problem. When you use system restore to restore the computer to a previous state, the programs and updates that you have installed are removed.

    To restore the operating system to an earlier point in time, follow these steps:

    1. Click Start, type system restore in the search box, and then click System Restore in the list programs. If you are prompted for an administrator password or a confirmation, type your password or click on continue.

    2. in the System Restore dialog box, click on choose another restore point and then click Next.

    3. in the list of restore points, click a restore point created before you started having the problem, and then click Next.

    4. click on finish.

    The computer restarts and system files and settings are back to the State they were in when the restore point was created.

    Don
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • trying to update microsoft office 2010, but get an error 80070652? who says another program is still installing.

    trying to update microsoft office 2010, but get an error 80070652? who says another program is still installing. IAM running windows vista. Even when I try to install a game its says another program is still being set up.

    In addition, if the above does not help, there may be a registry key interfere with the installation of the update.  Take a look at the information in the article on http://www.installsite.org/pages/en/msifaq/error/1618.htm.

    Sloan Crayton

  • Visual studio 2008 error message"unable to start the program C\user\...\debug\example14.exe" the system cannot find the specified folder

    im working on a project in visual studio 2008, and once I hit the compilation does his usual thing and then all of a sudden I get the error message

    Cannot start the program (file location)

    the system cannot find the specified file

    I tried to install other UN and re install visual but without success

    Help, please!

    Repost nicely in the Forums on the link below:

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio, vsarch, vsdbg, vstest, vstfs, vsdata, vsappdev, visualbasic, visualcsharp, end

    Visual Studio General forums

    They will help you in the Forums above.

    See you soon.

    Discuss programming techniques, best practices and development issues for all versions of Visual Studio.

    Mick Murphy - Microsoft partner

  • Try to run programs .exe produces the error message "this file has no program associated with it for performing this action. Create an association in the control panel to define the Associations. "

    Hi all

    Help needed please.

    HP dx2250 microtower, running Windows Vista Home Basic Edition, recently attacked by Vista Antispyware 2010. Norton 360 V3 dealt with rather late the virus, but the fall of the remains.

    I am unable to open any .exe file (program) on the desktop, start menu, or through the browser. I can access the programs in opening a data file, for example, double-click a .doc file opens MS Word, etc.

    The error message "this file has no program associated with it for performing this action. Create an association in the control panel to define the Associations. "

    I tried an automated solution that is available via the forums (exefix_cu.reg) and also a manual suggestion to change the registry, also available through the forum.

    I also splashed by and purchased Regcure, who seems to have done no difference despite who claims to have removed 1500 odd errors. So I'll be request the refund on that one.

    I scanned the forums and found a large number of similar problems, but not one that is as complete as this.

    Any help much appreciated

    Hi all

    Thanks to anyone who has seen this link and made suggestions.

    I was looking at a similar, and is other problems came up with this very useful link, I am grateful to say has solved the problem.

    Sorry MapDrummer, but I'm not sure if it works for XP

    Follow this link to SpiritX who has the answer

    Hi Justalilkink,

    See also the post made by SpiritX on January 24, 2010 17:32 in the link http://social.answers.microsoft.com/Forums/en/vistafiles/thread/086ab3bb-d764-4fb1-a6f3-205bff708e63

    Thank you very much

Maybe you are looking for

  • Cannot disconnect from iCloud, because I can't recreate my old AppleID

    I have an iPhone 5 (OS 9.3.2) and I recently changed my AppleID. I changed it with success in the AppleStore and in fact all the places, it was necessary, outside the iCloud on the iPhone, and now, I don't have access to it more. Now, I read everythi

  • Satellite L505 - 14K - cannot read Windows key label CoA

    Hello. I have a Satellite L505 - 14K on which I need to reinstall Windows 7 Home Premium, but Windows key on the label is unreadable. Could I get a replacement for it? Also I can not read the HARD drive Windows code because it has been formatted befo

  • How to get values page, component and menu of Peoplesoft from the page?

    Hi allWe used Peopletools 8,4 x previously where it is used to make a comment on the page of peoplesoft something of this form:<!--IE/6.0/WINNT; ToolsRel = 8.44.17; Page = INV_ITEMS_DEFIN1; Component = ITEMS_INQUIRY; Menu = DEFINE_ITEMS; User = VP1;

  • Space between menu and object that is not supposed to be there

    I have a menu on my master page. All on other pages is aligned against this menu at the top. All of a sudden, I have a space between the objects and my menu on my pages. It is located on every page. I have not changed anything, I worked only on my me

  • CC - meanwhile... updates, uninstall or install

    I'm on an iMac OS X 10.10.5 the photographers CC 9.99/month subscription.Lately when I let CC an update to Photoshop or Lightroom, after clicking on the button update, I get "Waiting."... "to infinity happens. Like 20 minutes or more.Why it waited so