Separating Classes & Using Inheritance With UserControl #1055
              
                Unanswered
              
          
                  
                    
                      AaronCatolico
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 19 replies
-
| Understood, but what's your question? | 
Beta Was this translation helpful? Give feedback.
                  
                    19 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have two separate classes ('Container1' & 'Container2'). I'd like the Container2 class to be able to inherit Container1 controls (variables and functions), but every class in the end will be called from the 'main.py' file to add all classes controls to the page. Here's a very simple example below of Container1 & Container2 classes. I'd like to be able to click the button in Container2 class container to change the color of Container1 container:
Beta Was this translation helpful? Give feedback.
All reactions