• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Images do not display correctly

 
celine mcgowan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
I'm a bit of a newbie & i'm trying to implement an LED display. I have 4 .gif's to represent the 'bars' of an LED - vertical & horizontal, lit & unlit. I've started by trying to organise the 7 'bars' in a GridLayout , but when i run this code, i just get two of the bars displaying in the window - one Horizontal & one Vertical....

Can anyone tell me where i'm going wrong? I'd really appreciate any help at all.
Thanks a million,
Celine
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by celine mcgowan:



For starters, your GridLayout has one row and two columns. That gives you two slots to display components in.
 
celine mcgowan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,
Thanks a million for your help. I actually got this by creating two panels with border layouts & making two 'squares' from them. I then made another panel and added the two squares to it, so i have a nice 'figure of eight' pattern on the screen.
Thanks again!
Celine
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic