Question: Given the following code, which method ( s ) can use the variable named base? class TextWindow ( EasyFrame ) : def init ( self
Given the following code, which methods can use the variable named base?
class TextWindowEasyFrame:
def initself:
EasyFrame.initself title
self.addLabeltext "Input", row column
self.inputField self.addTextFieldtext row column
self.addLabeltext "Output", row column
self.outputField self.addTextFieldtext row column state "readonly"
self.addButtontext "Convert", row column columnspan command self.convert
self.base
def convertself:
temp self.inputField.getText
result temp.upper
self.outputField.setTextresult
def main:
TextWindowmainlogp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
