91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 6.63MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2023-11-18
  • 語言: Python
  • 標簽: Python??

資源簡介

界面較為美觀 代碼注釋完整 可繼續進行進一步開發 有需要的可自行下載

資源截圖

代碼片段和文件信息

#!/usr/bin/env?python
#?-*-?coding:?utf-8?-*-
#
#??button.py
#??
#??Copyright?2019?Nancyqinglan?
#??
#??This?program?is?free?software;?you?can?redistribute?it?and/or?modify
#??it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
#??the?Free?Software?Foundation;?either?version?2?of?the?License?or
#??(at?your?option)?any?later?version.
#??
#??This?program?is?distributed?in?the?hope?that?it?will?be?useful
#??but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
#??MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
#??GNU?General?Public?License?for?more?details.
#??
#??You?should?have?received?a?copy?of?the?GNU?General?Public?License
#??along?with?this?program;?if?not?write?to?the?Free?Software
#??Foundation?Inc.?51?Franklin?Street?Fifth?Floor?Boston
#??MA?02110-1301?USA.
#??
#??
import?pygame
import?pygame.font
import?sys
import?traceback
from?pygame.locals?import?*

import?math
import?panda3d.core
import?direct.showbase.Showbase
import?direct.gui.OnscreenText
import?direct.task.Task
import?direct.interval.LerpInterval
import?direct.gui.DirectCheckButton
?
?
pygame.font.init()
pygame.init()

class?Mybutton():
def?draw_button(screen):

‘‘‘
繪制按鍵
‘‘‘


button_color?=?(163?80?21)
pygame.draw.rect(screen?button_color?[1180?55?140?100]?5)
pygame.draw.rect(screen?button_color?[1340?55?140?100]?5)
pygame.draw.rect(screen?button_color?[1180?255?300?100]?5)
pygame.draw.rect(screen?button_color?[1180?455?300?100]?5)
pygame.draw.rect(screen?button_color?[1180?655?300?100]?5)
?
font?=?pygame.font.Font(‘font.ttf‘?45)
#畫‘認輸’,‘求和’,‘悔棋’,‘重新開始’和‘退出’按鈕
defeat?=?font.render(“認??輸“?True?button_color)
peace?=?font.render(“求??和“?True?button_color)
retract?=?font.render(“悔棋(Backspace)“?True?button_color)
restart?=?font.render(“重新開始(F5)“?True?button_color)
withdraw?=?font.render(“退出游戲(Esc)“?True?button_color)
screen.blit(defeat?(1190?80))
screen.blit(peace?(1350?80))
screen.blit(retract?(1180?280))
screen.blit(restart?(1210?480))
screen.blit(withdraw?(1200?680))


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2312??2019-04-16?09:33??chess?-?單機版\button.py

?????文件???????6205??2019-03-30?11:39??chess?-?單機版\chess.py

?????文件???????1042??2019-04-16?22:49??chess?-?單機版\client.py

?????文件????3166656??2018-12-26?11:08??chess?-?單機版\font.ttf

?????文件????5370864??2003-11-07?13:44??chess?-?單機版\font1.TTF

?????文件??????26437??2019-04-16?09:43??chess?-?單機版\game_function.py

?????文件????2035854??2019-03-30?10:41??chess?-?單機版\images\chessboard.bmp

?????文件????5130054??2019-03-29?11:03??chess?-?單機版\images\map.bmp

?????文件??????13046??2019-03-30?10:55??chess?-?單機版\images\mute.jpg

?????文件?????446466??2019-04-09?09:28??chess?-?單機版\images\result.png

?????文件??????12076??2019-03-30?10:56??chess?-?單機版\images\voice.jpg

?????文件???????2875??2019-04-16?09:43??chess?-?單機版\main.py

?????文件?????????86??2019-03-29?11:38??chess?-?單機版\server\config.txt

?????文件???????5563??2019-03-29?11:39??chess?-?單機版\server\server.py

?????文件???????5689??2019-04-16?21:25??chess?-?單機版\settings.py

?????文件???????3607??2019-03-29?08:25??chess?-?單機版\__pycache__\board.cpython-37.pyc

?????文件???????1438??2019-04-16?09:33??chess?-?單機版\__pycache__\button.cpython-37.pyc

?????文件???????4087??2019-03-30?11:40??chess?-?單機版\__pycache__\chess.cpython-37.pyc

?????文件??????18504??2019-04-16?09:44??chess?-?單機版\__pycache__\game_function.cpython-37.pyc

?????文件???????1766??2019-04-16?09:43??chess?-?單機版\__pycache__\main.cpython-37.pyc

?????文件???????2463??2019-04-16?21:24??chess?-?單機版\__pycache__\settings.cpython-37.pyc

?????目錄??????????0??2019-04-09?09:28??chess?-?單機版\images

?????目錄??????????0??2019-03-29?11:05??chess?-?單機版\server

?????目錄??????????0??2019-04-16?21:24??chess?-?單機版\__pycache__

?????目錄??????????0??2019-04-16?22:49??chess?-?單機版

-----------?---------??----------?-----??----

?????????????16257090????????????????????25


評論

共有 條評論