Changeset 209


Ignore:
Timestamp:
07/11/09 22:11:07 (10 years ago)
Author:
bretzel_parpg
Message:

The examine popup now uses pychan's built in word wrap instead of the python module textwrap

File:
1 edited

Legend:

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

    r202 r209  
    1616#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>. 
    1717 
    18 import textwrap 
    1918import fife 
    2019import pychan 
     
    307306                                                   position_technique="center:center", 
    308307                                                   min_size=(175,175)) 
    309              
    310         new_desc = textwrap.fill(desc, 35) 
    311308 
    312309        self.scroll = pychan.widgets.ScrollArea(name='scroll', size=(150,150)) 
    313         self.description = pychan.widgets.Label(name='descText', text=unicode(new_desc)) 
     310        self.description = pychan.widgets.Label(name='descText', text=unicode(desc), wrap_text=True) 
     311        self.description.max_width = 170 
    314312        self.scroll.addChild(self.description) 
    315313        self.examineWindow.addChild(self.scroll) 
Note: See TracChangeset for help on using the changeset viewer.