Sim_Chart_~
import pygame
import os
import numpy as np
import random
import pyautogui
import datetime
import random
import time
from HslCommunication import MelsecMcNet
import pandas as pd
import json
import copy
import requests
import threading
import glob
import logging
from pygame.locals import *
# 初始化pygame
pygame.init()
# 颜色定义
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
ORANGE = (255, 165, 0)
PURPLE = (128, 0, 128)
BROWN = (139, 69, 19)
BLACK = (0, 0, 0)
# 设置窗口大小和标题
WINDOW_WIDTH = 1920
WINDOW_HEIGHT = 1080
WINDOW_TITLE = "Pump"
screen = pygame.display.set_mode((WINDOW_WIDTH, WINDOW_HEIGHT))
pygame.display.set_caption(WINDOW_TITLE)
# 设置字体(这里暂时未使用到,但保留以备后用)
font = pygame.font.Font(r'C:\Windows\fonts\simHei.TTF', 30)
font2 = pygame.font.Font(r'C:\Windows\fonts\simHei.TTF', 23)
font3 = pygame.font.Font(r'C:\Windows\fonts\simHei.TTF', 600)
font6 = pygame.font.Font(r'C:\Windows\fonts\simHei.TTF', 50)
font66 = pygame.font.Font(r'C:\Windows\fonts\simHei.TTF', 90)
# Setting Demo Error
Pump_Error_Bf = pyautogui.prompt('请选择模式,Sample:1,NG Mode',default='0')
Pump_Error=int(Pump_Error_Bf)
# Setting Torndo
Tim_Time_Buffer=pyautogui.prompt('请输入龙卷风报警间隔时间,Sample:600 = 10 Mins ,最大 10 年',default='3')
Tim_Time=int(Tim_Time_Buffer)
print('LJF GAP Second =>',Tim_Time)
#LJF设定
#LJF设定
text = "结果"
text2 = "曲线说明:绿色表示OOC(Out of Control)
原文地址:https://blog.csdn.net/weixin_68067302/article/details/142424815
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!