SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-24-2006, 12:51 AM
DwarF DwarF is offline
Sage Advanced User
 
Join Date: Dec 2005
Location: Austin, Tx
Posts: 100
UI Widgets in loops

So, I tried playing around with UI widets in loops with some pretty erratic behavior. I am supposing it is because the widget is a single reference, and I am basically just updating the attributes of the same reference, instead of the nested behavior I was seeking. I then went back and read the docs again, and saw it pretty clearly stated that you cannot use a UI widget in a loop.

Has anyone found a workaround for this?
Can I just add UI widgets in loop if I do it from my own code?

EDIT: I think I see how, if I return an Array of Strings, I can put a table under the Array and it will created a table of whatever elements I put under it automatically. I haven't been able to try it yet, but that's what it looks like the search functions for shows, actors, etc are doing. Any other workaround advice is welcomed too.


TIA for the advice,
DwarF
__________________
Software:
Sage v4.1, Girder v3.3, Windows XP, AC3Filter, IRTrans, WinAmp
The Goods:
Hauppauge 500 MCE, Gigabyte nVIDIA GeForce 6600 GT SLI, Asus A8N-E, AMD 64 3200+ "Venice", 1Gig DDR 400, HP dvd740i, Seasonic 12 330, OrigenAE X11, Windows MCE remote, Duct tape

Last edited by DwarF; 01-24-2006 at 01:00 AM.
Reply With Quote
  #2  
Old 01-24-2006, 01:44 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
I suggest you work through the tutorial, which explains tables pretty well.
__________________
-- Greg
Reply With Quote
  #3  
Old 01-24-2006, 02:17 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
also: previous post about loops

summary:

only multiple instances of shapes can be generated by loops -- other UI widgets cause interesting behaviour.

Tables are used to generate multiple UI widget trees for each item in an array/list, and are probably what you want.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #4  
Old 01-24-2006, 09:46 AM
DwarF DwarF is offline
Sage Advanced User
 
Join Date: Dec 2005
Location: Austin, Tx
Posts: 100
I did read through the tutorial and the manual. I did understand what they said. I was asking the community if they had found another way to get some more complex nesting behavior.

I know you guys provide a lot of feedback into the community, and I appriciate your efforts on your own projects, and in answering my question. However, RTFM responses come off a bit condescending when the original question mentions having already learned that from the manual, tutorials and practical experience of trial and painful error.

DwarF
__________________
Software:
Sage v4.1, Girder v3.3, Windows XP, AC3Filter, IRTrans, WinAmp
The Goods:
Hauppauge 500 MCE, Gigabyte nVIDIA GeForce 6600 GT SLI, Asus A8N-E, AMD 64 3200+ "Venice", 1Gig DDR 400, HP dvd740i, Seasonic 12 330, OrigenAE X11, Windows MCE remote, Duct tape
Reply With Quote
  #5  
Old 01-24-2006, 11:33 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Tables are pretty much it... and I figured that they were reinforcing that there really isn't another useful/easy to use solution, since the question seemed to indicate that you still weren't sure that tables were the way to go if you can't have UI widgets in loops. Unless someone actually says it in a negative way, I count "RTFM" comments as pointers in the direction to go, not condescending subtle insults... I use manual/doc references all the time w/o intending it to mean the person is an idiot for not finding/confirming the info themselves.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #6  
Old 01-24-2006, 12:03 PM
DwarF DwarF is offline
Sage Advanced User
 
Join Date: Dec 2005
Location: Austin, Tx
Posts: 100
Yup. You're right. Sorry for being such a sensitive weenie.
__________________
Software:
Sage v4.1, Girder v3.3, Windows XP, AC3Filter, IRTrans, WinAmp
The Goods:
Hauppauge 500 MCE, Gigabyte nVIDIA GeForce 6600 GT SLI, Asus A8N-E, AMD 64 3200+ "Venice", 1Gig DDR 400, HP dvd740i, Seasonic 12 330, OrigenAE X11, Windows MCE remote, Duct tape
Reply With Quote
  #7  
Old 01-24-2006, 02:01 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
My reading of your first post was that you had not yet had any hands-on experience with tables (which you would have if you had done the tutorial exercises). Sorry if I got it wrong.
__________________
-- Greg
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.