Jump to content

Running python in Linux with tk root?


Recommended Posts

So I just started watching the videos from Stanford, Google, MIT and a few on youtube. One of them contained the code for using tkinter function to create an application window and I tried to put the same type of thing together can anyone tell me what I am doing wrong cause nothing is happeing for me. I am running linux mint:

# - So this is what it feels like
# - To be alive
import sys

author = "Brian T. Flores"
version = "0.1"
sessionID = 0

#Get Interface

     from Tkinter import *

#initialize interface 

     root = Tk()

#modify root window info
     root.title("Unknown Limits - Massive Multiplayer RPG")

#initialize root window


#if session is > 0:

   #Get Player Info

          UserName = "Brian Flores"
          Password = "enterprise"
          rank = 32


          planetName = "Earth"
          plasmaOnhand = 1000000000
          titainiumOnhand = 340000
          crystalOnhand = 55000000
          magneticEnergyOnhand = 350000 
          ecosystem = "No" 

# yes or no depending on wars or natural disasters that could have damaged or destroyed your ecosystem if there is no ecosystem the atmosphere must be cleaned up and another must be transplanted from another world.

          ecosystemDamage = 10000;  
#Damage can result from experiments, wars, natural disasters. At 10,000 damage the ecosystem goes extinct. You can repair this damage my researching technologies and building machines to do such repair 
 #         else:
           #   print "You are not logged in!";

        # raw_input()

Well for some reason it's not working. All I am doing here is setting some vars and using the root.tk function.

If anyone has any Ideas or tips to get this basic script working let me know.


Thank you,


Edited by DaRedHead
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.