Skip to content

Commit

Permalink
사진 순차적으로 불러오게 함
Browse files Browse the repository at this point in the history
  • Loading branch information
9nu-j2 authored Jul 5, 2021
1 parent e68824b commit 7198e6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PoseQuiz/pose_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def keyPressEvent(self, e):
self.count = 5
self.title.setVisible(False)
txt= subjects[self.key]
self.key += 1
self.img_label.setText(txt)
self.img_label.setFont(QFont('Arial', 75))

Expand Down Expand Up @@ -105,7 +104,7 @@ def timeout(self):
self.title.setVisible(True)
self.title.setText('정답공개')

obj = QPixmap('img\pose_answer.png')
obj = QPixmap('img\pose_answer'+str(self.key)+'.jpg')
obj = obj.scaledToWidth(1500)
self.img_label.setPixmap(obj)

Expand All @@ -117,6 +116,8 @@ def timeout(self):
obj = obj.scaledToWidth(1500)
self.img_label.setPixmap(obj)
self.title.setText('촬영사진')

self.key += 1

if __name__ == '__main__':
app = QApplication(sys.argv)
Expand Down

0 comments on commit 7198e6c

Please sign in to comment.