From: Joe Van Dyk Date: 2005-06-09T07:59:31+09:00 Subject: Re: Test-Driven Development in GUIs On 6/8/05, Joe Van Dyk wrote: > On 6/8/05, Joe Van Dyk wrote: > > On 6/7/05, Joe Van Dyk wrote: > > > Hi, > > > > > > Anyone have any tips for writing GUIs in Ruby (using Tk, for example) > > > using a TDD approach? Tk question: How can I tell, via code, if a button is actually being displayed on the screen? Say buttons are being created based on data from a configuration file. If I have a method that reads the config file and generates buttons, how can I make sure those buttons are actually going to be displayed on the screen? I just ran into this problem when I forgot to 'pack' some buttons, where 'packing' in Tk makes them visible/active on the screen. But I don't know how to test for that.