Changeset 155


Ignore:
Timestamp:
06/20/09 16:25:20 (10 years ago)
Author:
bretzel_parpg
Message:

Made the text on the 'Are you sure' message be a unicode object. If you
don't do this, it still works, but Pychan prints out a warning message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/world.py

    r154 r155  
    203203           @type widget: pychan.widget 
    204204           @param widget: widget to set 
    205            @type image: ??? 
     205           @type image: string 
    206206           @param image: image to use 
    207207           @return: None""" 
     
    363363           @return: None""" 
    364364        if(self.quitFunction != None): 
    365             window = pychan.widgets.Window(title="Quit?") 
     365            window = pychan.widgets.Window(title=unicode("Quit?")) 
    366366 
    367367            hbox = pychan.widgets.HBox() 
    368             label = pychan.widgets.Label(text="Are you sure you want to quit?") 
     368            label = pychan.widgets.Label(text=unicode("Are you sure you want to quit?")) 
    369369            yes_button = pychan.widgets.Button(name="yes_button",  
    370370                                               text=unicode("Yes")) 
Note: See TracChangeset for help on using the changeset viewer.