GUI_DrawGraph()函数的原型为:void GUI_DrawGraph(I16 *paY, int NumPoints, int x0, int y0);需要提供的参数:paY为纵坐标的数组头指针 NumPoints,顾名思义,为所需绘制的图象的点数 x0,y0为坐标原点在TFT_LCD屏幕上的坐标 这个函数的效果为在屏幕上依次绘制出相对于(x0,y0)坐标为(*(paY+0),...
PySimpleGUI Version: 4.29.0 Released 25-Aug-2020 tkinter version: 8.6.9 Description of Problem / Question / Details TheDemo_Graph_Drawing_And_Dragging_Figuresshows nicely how to drag'n'drop sg.Graph draw primitives. Is something like this also available for resizing?
import PySimpleGUI as sg class Graph(sg.Graph): def draw_line(self, point_from, point_to, color='black', width=1, dash=None, dashoffset=None): """ Draws a line from one point to another point using USER'S coordinates. Can set the color and width of line :param point_from: Start...
GUI_DrawGraph()函数的原型为: void GUI_DrawGraph(I16 *paY, int NumPoints, int x0, int y0); 需要提供的参数:paY为纵坐标的数组头指针 NumPoints,顾名思义,为所需绘制的图象的点数 x0,y0为坐标原点在TFT_LCD屏幕上的坐标 这个函数的效果为在屏幕上依次绘制出相对于(x0,y0)坐标为(*(paY+0),0),...