QcomboBox를 IF문으로 작동시키고 싶습니다.
조회수 333회
예를들어 QcomboBox에 네이버랑 다음이 있으면
if comboBox.currentText() = '네이버'
driver = uc.Chrome()
url = 'http://naver.com'
driver.get(url)
if comboBox.currentText() = '다음'
driver = uc.Chrome()
url = 'http://daum.net'
driver.get(url)
이런식으로 하고싶은데 저 currentText()자리에 어떤 태그를 넣어도
제대로 안됩니다..
부족한 저에게 한줄기 빛이 되어주실 선생님을 찾습니다..
1 답변
-
# if comboBox.currentText() = '네이버' if comboBox.currentText() == '네이버' : driver = uc.Chrome() url = 'http://naver.com' driver.get(url) # if comboBox.currentText() = '다음' if comboBox.currentText() == '다음' : driver = uc.Chrome() url = 'http://daum.net' driver.get(url)
댓글 입력