User Profile

Collapse

Profile Sidebar

Collapse
360monkey
360monkey
Last Activity: Feb 28 '10, 03:09 AM
Joined: Feb 1 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 360monkey
    replied to Console in Tkinter GUI
    Thank You! This is what i was trying to achieve.
    See more | Go to post

    Leave a comment:


  • 360monkey
    replied to Console in Tkinter GUI
    Thanks for the suggestion, but do you know how i can store strings in a list-like format, append strings to the end as I print, and use \n\ in them? a list wont work because it would display as [..., ..., ...]
    any help would be appreciated
    See more | Go to post

    Leave a comment:


  • 360monkey
    started a topic Console in Tkinter GUI

    Console in Tkinter GUI

    Hi Bytes Community!

    I am using tkinter to create a GUI and was wondering how to make a "console" widget embedded in the GUI. Sort of like the python command line but inside the GUI

    Thanks in advance!
    See more | Go to post

  • 360monkey
    replied to Strange .grid sectioning? Tkinter?
    Thank You very much!
    Your answer has increased my python knowledge and I am grateful for you consistently imparting to me great knowledge!
    Thanks!
    See more | Go to post

    Leave a comment:


  • 360monkey
    replied to Strange .grid sectioning? Tkinter?
    Response

    Bvdet,

    I put
    Code:
    self.frame = frame
    into my code, and it gave me a message saying:

    NameError: global name 'frame' is not defined
    and it points me to the self.frame = frame code.

    Code:
    def interface(self):
    		self.frame = frame
    		self.stats1 = Button(self.frame, text='STATS', command=None)
    		self.stats1.grid(row=1, column=0)
    		self.stats2
    ...
    See more | Go to post

    Leave a comment:


  • 360monkey
    replied to Strange .grid sectioning? Tkinter?
    Response

    So i should replace 'root' with frame?

    Code:
    # def interface(self):
    #         self.stats1 = Button([U]frame[/U], text='STATS', command=None)
    #         self.stats1.grid(row=1, column=0)
    #         self.stats2 = Button([U]frame[/U], text='STATS', command=None)
    #         self.stats2.grid(row=1, column=4)
    #         if gi.turn == 1:
    #             self.attack1 = Button([U]frame[/U], text='ATTACK', fg='red',
    ...
    See more | Go to post

    Leave a comment:


  • 360monkey
    started a topic Strange .grid sectioning? Tkinter?

    Strange .grid sectioning? Tkinter?

    Hey Bytes Community!

    I am currently using Tkinter to create a GUI window, and I ran into a problem. Here is my code:

    Code:
    from Tkinter import *
    import random
    import gameinclude
    gi = gameinclude
    
    class App:
    
    	def __init__(self, master):
    	##########
    	#Menu Bar#
    	##########
    		frame = Frame(master)
    		frame.grid()
    		menu = Menu(root)
    ...
    See more | Go to post

  • 360monkey
    started a topic Destroy Toplevel

    Destroy Toplevel

    Hello Bytes Community!

    How do you destroy a toplevel application window in Tkinter?

    sayi have

    root window

    and

    [CODE]window = Toplevel()

    window.destroy?[/CODE

    How do i destroy the Toplevel?

    thanks in advance, sorry for the weak code...
    See more | Go to post

  • 360monkey
    replied to Get Strings from Entry Boxes
    Thank You! Your answer has helped me a lot!
    See more | Go to post

    Leave a comment:


  • 360monkey
    started a topic Get Strings from Entry Boxes

    Get Strings from Entry Boxes

    Hey Bytes Community!

    I am learning Tkinter GUI and have come across a problem.

    Code:
    from Tkinter import *
    import random
    
    class App:
    	
    	def __init__(self, master):
    		frame = Frame(master)
    		frame.pack()
    		menu = Menu(root)
    		root.config(menu=menu)
    		filemenu = Menu(menu)
    		menu.add_cascade(label='File', menu=filemenu)
    		filemenu.add_command(label='Practice',
    ...
    See more | Go to post

  • 360monkey
    started a topic .grid problem is freezing my GUI

    .grid problem is freezing my GUI

    With some tinkering with previous answers for previous questions, I have come across a new problem with my GUI. I cannot align with the grid (?)

    example:
    Code:
    from Tkinter import *
    import random
    
    class App:
    	
    	def __init__(self, master):
    		frame = Frame(master)
    		frame.pack()
    		self.label = LabelFrame(frame, text='Battler III')
    		self.label.pack()
    		self.areBtn
    ...
    See more | Go to post

  • 360monkey
    replied to Takes 2 arguments? I gave one???!!!
    thank you! my code works now! i will read the posting regulations and return if i ned help again.
    ^.^
    See more | Go to post

    Leave a comment:


  • 360monkey
    started a topic Takes 2 arguments? I gave one???!!!

    Takes 2 arguments? I gave one???!!!

    Code:
    from Tkinter import *
    import random
    
    class App:
    	def __init__(self, master):
    		frame = Frame(master)
    		frame.pack()
    		self.label = LabelFrame(frame, text='Battler III')
    		self.label.pack()
    		self.arena = Button(frame, text='Arena Mode', relief=RAISED, command=self.arena)
    		self.arena.grid(row=4)
    		self.arena.pack()
    		self.adven = Button(frame,text='Adventure Mode', relief=RAISED,
    ...
    See more | Go to post
    Last edited by bvdet; Feb 6 '10, 04:47 PM. Reason: Add code tags

  • Thank you! this will make the message 20 characters!
    I don't know what id do without this reply!
    Arigatou Gozaimasu
    See more | Go to post

    Leave a comment:


  • 360monkey
    replied to Getting rid of module naming
    Thank you for the answer! It works now and I can python away! Thanks!
    See more | Go to post

    Leave a comment:


  • 360monkey
    started a topic Getting rid of module naming

    Getting rid of module naming

    I have this program:
    Code:
    class Cabbage:
       def __init__(self, height, bobnum):
          self.h = self.height
          self.b = self.bobnum
    x = cabbage(3, 7)
    If i put in cabbage.x.h, it returns
    3
    I want to remove the need to type cabbage in this,so i can just put
    x.h and return
    3.

    Any help is appreciated
    Thanks
    See more | Go to post
    Last edited by bvdet; Feb 2 '10, 11:08 PM. Reason: Add code tags

  • 360monkey
    started a topic calling a function from a module in a class

    calling a function from a module in a class

    I recently tried to start learning GUI for python, and reverted back to python 2.6.4

    my question:

    in python 3.1.1,:
    >>>import title
    >>>title.class. function()
    >>>running program

    in python 2.6.4:
    >>>import title #working fine
    >>>title.class. function()
    then I get this:
    unbound method must be called with class...
    See more | Go to post
No activity results to display
Show More
Working...