Re: [pygame] draw text and rectangle with pygame

2009-05-04 Thread B W
Wouldn't you rather puzzle it out yourself? :) Here's a generic technique without spoiling your fun. 1. Create your drawing surface. (Check PyGame tutorials for tips.) 2. Figure out how much space your text needs. (Hint: Font.size.) 3. Render your text. (Hint: Font.render.) 4. Copy your rendered

[pygame] draw text and rectangle with pygame

2009-05-03 Thread He Jibo
Hello, Could anyone please give me some hint on how to draw text and box in the same screen with pygame? If you can share me some sample code, that would be great! I wish I could draw a screen looks like the one in the following link, that would be great! https://cid-bbc15003189d7799.skydrive.live