Bläddra i källkod

*** empty log message ***

slpatto 23 år sedan
förälder
incheckning
22fa0be7b2
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      direct/src/gui/DirectScrolledList.py

+ 6 - 0
direct/src/gui/DirectScrolledList.py

@@ -7,6 +7,12 @@ class DirectScrolledList(DirectFrame):
 
         self.index = 0
 
+        # If one were to want a scrolledList that makes and adds its items
+        #   as needed, simply pass in an items list of strings (type 'str')
+        #   and when that item is needed, itemMakeFunction will be called
+        #   with the text, the index, and itemMakeExtraArgs.  If itemMakeFunction
+        #   is not specified, it will create a DirectFrame with the text.
+        
         # Inherits from DirectFrame
         optiondefs = (
             # Define type of DirectGuiWidget