From 4cf30d95e104083829e05ad8ab79d2a02d3baa29 Mon Sep 17 00:00:00 2001 From: Irony <892768447@qq.com> Date: Fri, 4 Oct 2019 10:18:34 +0800 Subject: [PATCH] rename QChart to QtChart --- {QChart => QtChart}/AreaChart.py | 0 {QChart => QtChart}/BarChart.py | 0 {QChart => QtChart}/BarStack.py | 3 +- {QChart => QtChart}/ChartThemes.py | 0 {QChart => QtChart}/CustomXYaxis.py | 0 {QChart => QtChart}/DynamicSpline.py | 3 +- {QChart => QtChart}/HorizontalBarChart.py | 0 .../HorizontalPercentBarChart.py | 0 {QChart => QtChart}/LineChart.py | 1 - {QChart => QtChart}/LineStack.py | 3 +- {QChart => QtChart}/PercentBarChart.py | 0 {QChart => QtChart}/PieChart.py | 0 {QChart => QtChart}/README.en.md | 0 {QChart => QtChart}/README.md | 0 {QChart => QtChart}/ScatterChart.py | 0 {QChart => QtChart}/ScreenShot/AreaChart.png | Bin {QChart => QtChart}/ScreenShot/BarChart.png | Bin {QChart => QtChart}/ScreenShot/BarStack.gif | Bin .../ScreenShot/ChartThemes.gif | Bin .../ScreenShot/CustomXYaxis.png | Bin .../ScreenShot/DynamicSplineChart.gif | Bin .../ScreenShot/HorizontalBarChart.png | Bin .../ScreenShot/HorizontalPercentBarChart.png | Bin {QChart => QtChart}/ScreenShot/LineChart.png | Bin {QChart => QtChart}/ScreenShot/LineStack.gif | Bin .../ScreenShot/PercentBarChart.png | Bin {QChart => QtChart}/ScreenShot/PieChart.png | Bin .../ScreenShot/ScatterChart.png | Bin .../ScreenShot/SplineChart.png | Bin {QChart => QtChart}/ScreenShot/ToolTip.gif | Bin {QChart => QtChart}/ScreenShot/ToolTip2.gif | Bin {QChart => QtChart}/SplineChart.py | 0 {QChart => QtChart}/ToolTip.py | 0 {QChart => QtChart}/ToolTip2.py | 0 {QChart => QtChart}/requirements.txt | 0 README.md | 32 +++++++++--------- 36 files changed, 19 insertions(+), 23 deletions(-) rename {QChart => QtChart}/AreaChart.py (100%) rename {QChart => QtChart}/BarChart.py (100%) rename {QChart => QtChart}/BarStack.py (99%) rename {QChart => QtChart}/ChartThemes.py (100%) rename {QChart => QtChart}/CustomXYaxis.py (100%) rename {QChart => QtChart}/DynamicSpline.py (96%) rename {QChart => QtChart}/HorizontalBarChart.py (100%) rename {QChart => QtChart}/HorizontalPercentBarChart.py (100%) rename {QChart => QtChart}/LineChart.py (99%) rename {QChart => QtChart}/LineStack.py (99%) rename {QChart => QtChart}/PercentBarChart.py (100%) rename {QChart => QtChart}/PieChart.py (100%) rename {QChart => QtChart}/README.en.md (100%) rename {QChart => QtChart}/README.md (100%) rename {QChart => QtChart}/ScatterChart.py (100%) rename {QChart => QtChart}/ScreenShot/AreaChart.png (100%) rename {QChart => QtChart}/ScreenShot/BarChart.png (100%) rename {QChart => QtChart}/ScreenShot/BarStack.gif (100%) rename {QChart => QtChart}/ScreenShot/ChartThemes.gif (100%) rename {QChart => QtChart}/ScreenShot/CustomXYaxis.png (100%) rename {QChart => QtChart}/ScreenShot/DynamicSplineChart.gif (100%) rename {QChart => QtChart}/ScreenShot/HorizontalBarChart.png (100%) rename {QChart => QtChart}/ScreenShot/HorizontalPercentBarChart.png (100%) rename {QChart => QtChart}/ScreenShot/LineChart.png (100%) rename {QChart => QtChart}/ScreenShot/LineStack.gif (100%) rename {QChart => QtChart}/ScreenShot/PercentBarChart.png (100%) rename {QChart => QtChart}/ScreenShot/PieChart.png (100%) rename {QChart => QtChart}/ScreenShot/ScatterChart.png (100%) rename {QChart => QtChart}/ScreenShot/SplineChart.png (100%) rename {QChart => QtChart}/ScreenShot/ToolTip.gif (100%) rename {QChart => QtChart}/ScreenShot/ToolTip2.gif (100%) rename {QChart => QtChart}/SplineChart.py (100%) rename {QChart => QtChart}/ToolTip.py (100%) rename {QChart => QtChart}/ToolTip2.py (100%) rename {QChart => QtChart}/requirements.txt (100%) diff --git a/QChart/AreaChart.py b/QtChart/AreaChart.py similarity index 100% rename from QChart/AreaChart.py rename to QtChart/AreaChart.py diff --git a/QChart/BarChart.py b/QtChart/BarChart.py similarity index 100% rename from QChart/BarChart.py rename to QtChart/BarChart.py diff --git a/QChart/BarStack.py b/QtChart/BarStack.py similarity index 99% rename from QChart/BarStack.py rename to QtChart/BarStack.py index 4310218..6267f42 100644 --- a/QChart/BarStack.py +++ b/QtChart/BarStack.py @@ -10,8 +10,8 @@ Created on 2017年12月28日 @description: like http://echarts.baidu.com/demo.html#bar-stack ''' -from random import randint import sys +from random import randint from PyQt5.QtChart import QChartView, QChart, QBarSeries, QBarSet, QBarCategoryAxis from PyQt5.QtCore import Qt, QPointF, QRectF, QPoint @@ -19,7 +19,6 @@ from PyQt5.QtGui import QPainter, QPen from PyQt5.QtWidgets import QApplication, QGraphicsLineItem, QWidget, \ QHBoxLayout, QLabel, QVBoxLayout, QGraphicsProxyWidget - __Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: 892768447@qq.com" __Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]" __Version__ = "Version 1.0" diff --git a/QChart/ChartThemes.py b/QtChart/ChartThemes.py similarity index 100% rename from QChart/ChartThemes.py rename to QtChart/ChartThemes.py diff --git a/QChart/CustomXYaxis.py b/QtChart/CustomXYaxis.py similarity index 100% rename from QChart/CustomXYaxis.py rename to QtChart/CustomXYaxis.py diff --git a/QChart/DynamicSpline.py b/QtChart/DynamicSpline.py similarity index 96% rename from QChart/DynamicSpline.py rename to QtChart/DynamicSpline.py index fe7baf0..3ed3b85 100644 --- a/QChart/DynamicSpline.py +++ b/QtChart/DynamicSpline.py @@ -10,12 +10,11 @@ Created on 2019年5月5日 """ import sys +from PyQt5.QtChart import QChartView, QChart, QSplineSeries, QValueAxis from PyQt5.QtCore import Qt, QTimer, QRandomGenerator -from PyQt5.QtChart import QChartView, QLineSeries, QChart, QSplineSeries, QValueAxis from PyQt5.QtGui import QPainter, QPen from PyQt5.QtWidgets import QApplication - __version__ = "0.0.1" diff --git a/QChart/HorizontalBarChart.py b/QtChart/HorizontalBarChart.py similarity index 100% rename from QChart/HorizontalBarChart.py rename to QtChart/HorizontalBarChart.py diff --git a/QChart/HorizontalPercentBarChart.py b/QtChart/HorizontalPercentBarChart.py similarity index 100% rename from QChart/HorizontalPercentBarChart.py rename to QtChart/HorizontalPercentBarChart.py diff --git a/QChart/LineChart.py b/QtChart/LineChart.py similarity index 99% rename from QChart/LineChart.py rename to QtChart/LineChart.py index 579a00f..aa2709c 100644 --- a/QChart/LineChart.py +++ b/QtChart/LineChart.py @@ -15,7 +15,6 @@ from PyQt5.QtChart import QChartView, QLineSeries, QChart from PyQt5.QtGui import QPainter from PyQt5.QtWidgets import QApplication - __version__ = "0.0.1" diff --git a/QChart/LineStack.py b/QtChart/LineStack.py similarity index 99% rename from QChart/LineStack.py rename to QtChart/LineStack.py index 1ee13b3..7a06c81 100644 --- a/QChart/LineStack.py +++ b/QtChart/LineStack.py @@ -12,14 +12,13 @@ Created on 2017年12月28日 import sys -from PyQt5.QtChart import QChartView, QChart, QLineSeries, QLegend,\ +from PyQt5.QtChart import QChartView, QChart, QLineSeries, QLegend, \ QCategoryAxis from PyQt5.QtCore import Qt, QPointF, QRectF, QPoint from PyQt5.QtGui import QPainter, QPen from PyQt5.QtWidgets import QApplication, QGraphicsLineItem, QWidget, \ QHBoxLayout, QLabel, QVBoxLayout, QGraphicsProxyWidget - __Author__ = "By: Irony.\"[讽刺]\nQQ: 892768447\nEmail: 892768447@qq.com" __Copyright__ = "Copyright (c) 2017 Irony.\"[讽刺]" __Version__ = "Version 1.0" diff --git a/QChart/PercentBarChart.py b/QtChart/PercentBarChart.py similarity index 100% rename from QChart/PercentBarChart.py rename to QtChart/PercentBarChart.py diff --git a/QChart/PieChart.py b/QtChart/PieChart.py similarity index 100% rename from QChart/PieChart.py rename to QtChart/PieChart.py diff --git a/QChart/README.en.md b/QtChart/README.en.md similarity index 100% rename from QChart/README.en.md rename to QtChart/README.en.md diff --git a/QChart/README.md b/QtChart/README.md similarity index 100% rename from QChart/README.md rename to QtChart/README.md diff --git a/QChart/ScatterChart.py b/QtChart/ScatterChart.py similarity index 100% rename from QChart/ScatterChart.py rename to QtChart/ScatterChart.py diff --git a/QChart/ScreenShot/AreaChart.png b/QtChart/ScreenShot/AreaChart.png similarity index 100% rename from QChart/ScreenShot/AreaChart.png rename to QtChart/ScreenShot/AreaChart.png diff --git a/QChart/ScreenShot/BarChart.png b/QtChart/ScreenShot/BarChart.png similarity index 100% rename from QChart/ScreenShot/BarChart.png rename to QtChart/ScreenShot/BarChart.png diff --git a/QChart/ScreenShot/BarStack.gif b/QtChart/ScreenShot/BarStack.gif similarity index 100% rename from QChart/ScreenShot/BarStack.gif rename to QtChart/ScreenShot/BarStack.gif diff --git a/QChart/ScreenShot/ChartThemes.gif b/QtChart/ScreenShot/ChartThemes.gif similarity index 100% rename from QChart/ScreenShot/ChartThemes.gif rename to QtChart/ScreenShot/ChartThemes.gif diff --git a/QChart/ScreenShot/CustomXYaxis.png b/QtChart/ScreenShot/CustomXYaxis.png similarity index 100% rename from QChart/ScreenShot/CustomXYaxis.png rename to QtChart/ScreenShot/CustomXYaxis.png diff --git a/QChart/ScreenShot/DynamicSplineChart.gif b/QtChart/ScreenShot/DynamicSplineChart.gif similarity index 100% rename from QChart/ScreenShot/DynamicSplineChart.gif rename to QtChart/ScreenShot/DynamicSplineChart.gif diff --git a/QChart/ScreenShot/HorizontalBarChart.png b/QtChart/ScreenShot/HorizontalBarChart.png similarity index 100% rename from QChart/ScreenShot/HorizontalBarChart.png rename to QtChart/ScreenShot/HorizontalBarChart.png diff --git a/QChart/ScreenShot/HorizontalPercentBarChart.png b/QtChart/ScreenShot/HorizontalPercentBarChart.png similarity index 100% rename from QChart/ScreenShot/HorizontalPercentBarChart.png rename to QtChart/ScreenShot/HorizontalPercentBarChart.png diff --git a/QChart/ScreenShot/LineChart.png b/QtChart/ScreenShot/LineChart.png similarity index 100% rename from QChart/ScreenShot/LineChart.png rename to QtChart/ScreenShot/LineChart.png diff --git a/QChart/ScreenShot/LineStack.gif b/QtChart/ScreenShot/LineStack.gif similarity index 100% rename from QChart/ScreenShot/LineStack.gif rename to QtChart/ScreenShot/LineStack.gif diff --git a/QChart/ScreenShot/PercentBarChart.png b/QtChart/ScreenShot/PercentBarChart.png similarity index 100% rename from QChart/ScreenShot/PercentBarChart.png rename to QtChart/ScreenShot/PercentBarChart.png diff --git a/QChart/ScreenShot/PieChart.png b/QtChart/ScreenShot/PieChart.png similarity index 100% rename from QChart/ScreenShot/PieChart.png rename to QtChart/ScreenShot/PieChart.png diff --git a/QChart/ScreenShot/ScatterChart.png b/QtChart/ScreenShot/ScatterChart.png similarity index 100% rename from QChart/ScreenShot/ScatterChart.png rename to QtChart/ScreenShot/ScatterChart.png diff --git a/QChart/ScreenShot/SplineChart.png b/QtChart/ScreenShot/SplineChart.png similarity index 100% rename from QChart/ScreenShot/SplineChart.png rename to QtChart/ScreenShot/SplineChart.png diff --git a/QChart/ScreenShot/ToolTip.gif b/QtChart/ScreenShot/ToolTip.gif similarity index 100% rename from QChart/ScreenShot/ToolTip.gif rename to QtChart/ScreenShot/ToolTip.gif diff --git a/QChart/ScreenShot/ToolTip2.gif b/QtChart/ScreenShot/ToolTip2.gif similarity index 100% rename from QChart/ScreenShot/ToolTip2.gif rename to QtChart/ScreenShot/ToolTip2.gif diff --git a/QChart/SplineChart.py b/QtChart/SplineChart.py similarity index 100% rename from QChart/SplineChart.py rename to QtChart/SplineChart.py diff --git a/QChart/ToolTip.py b/QtChart/ToolTip.py similarity index 100% rename from QChart/ToolTip.py rename to QtChart/ToolTip.py diff --git a/QChart/ToolTip2.py b/QtChart/ToolTip2.py similarity index 100% rename from QChart/ToolTip2.py rename to QtChart/ToolTip2.py diff --git a/QChart/requirements.txt b/QtChart/requirements.txt similarity index 100% rename from QChart/requirements.txt rename to QtChart/requirements.txt diff --git a/README.md b/README.md index 3bc560a..3e1bfa4 100644 --- a/README.md +++ b/README.md @@ -151,22 +151,22 @@ https://pyqt5.com 社区是专门针对PyQt5学习和提升开设的博客网站 - [Flat样式](QtQuick/FlatStyle.py) - [QML与Python交互](QtQuick/Signals.py) -- [QChart](QChart) - - [折线图](QChart/LineChart.py) - - [折线堆叠图](QChart/LineStack.py) - - [柱状堆叠图](QChart/BarStack.py) - - [LineChart自定义xy轴](QChart/CustomXYaxis.py) - - [ToolTip提示](QChart/ToolTip.py) - - [DynamicSpline动态曲线图](QChart/DynamicSpline.py) - - [区域图表](QChart/AreaChart.py) - - [柱状图表](QChart/BarChart.py) - - [饼状图表](QChart/PieChart.py) - - [样条图表](QChart/SplineChart.py) - - [百分比柱状图表](QChart/PercentBarChart.py) - - [横向柱状图表](QChart/HorizontalBarChart.py) - - [横向百分比柱状图表](QChart/HorizontalPercentBarChart.py) - - [散点图表](QChart/ScatterChart.py) - - [图表主题动画](QChart/ChartThemes.py) +- [QtChart](QtChart) + - [折线图](QtChart/LineChart.py) + - [折线堆叠图](QtChart/LineStack.py) + - [柱状堆叠图](QtChart/BarStack.py) + - [LineChart自定义xy轴](QtChart/CustomXYaxis.py) + - [ToolTip提示](QtChart/ToolTip.py) + - [DynamicSpline动态曲线图](QtChart/DynamicSpline.py) + - [区域图表](QtChart/AreaChart.py) + - [柱状图表](QtChart/BarChart.py) + - [饼状图表](QtChart/PieChart.py) + - [样条图表](QtChart/SplineChart.py) + - [百分比柱状图表](QtChart/PercentBarChart.py) + - [横向柱状图表](QtChart/HorizontalBarChart.py) + - [横向百分比柱状图表](QtChart/HorizontalPercentBarChart.py) + - [散点图表](QtChart/ScatterChart.py) + - [图表主题动画](QtChart/ChartThemes.py) - [PyQtGraph](PyQtGraph) - [鼠标获取X轴坐标](PyQtGraph/mouseFlow.py)