아미(아름다운미소)

python PyQt5 현재시간 출력 본문

랭귀지/PYTHON

python PyQt5 현재시간 출력

유키공 2018. 12. 4. 13:18

python PyQt5 현재시간

#-*- coding: utf-8 -*-
'''
Created on 2018. 12. 3.

@author: bhm
'''
from PyQt5.QtCore import QTime
current_time = QTime.currentTime()
text_time = current_time.toString("hh:mm:ss")
time_msg = "현재시간: " + text_time
print(time_msg)
현재시간: 13:14:46
Comments