GithubHelp home page GithubHelp logo

dyer234 / pywinsparkle Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 5.0 2.04 MB

License: MIT License

Python 85.44% Shell 9.56% Makefile 2.14% Batchfile 2.86%
windows-updates python-windows-updates wrapper-library winsparkle python wrapper pyinstaller

pywinsparkle's People

Contributors

dyer234 avatar marcelomanzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pywinsparkle's Issues

Update Error!

Hi,
When i run the version 1.0.0, it detects the new verion 1.1.0 and ask to press install. But both the applications are visible. It didn't overwrite the old one. So New one unzipped in temp folder and when i close the application. the new version disappears. Please help me to fix this issue.

`import numpy as np
import sys
import pandas as pd
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import csv
from mpldatacursor import datacursor
from PyQt5.QtWidgets import QApplication,QMenu, QVBoxLayout, QSizePolicy, QWidget, QMainWindow, QPushButton, QToolTip, QMessageBox, QAction, QFileDialog,
QGraphicsView
from PyQt5.QtCore import QCoreApplication
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import QColor
from matplotlib.figure import Figure
import warnings
warnings.simplefilter(action="ignore",category= RuntimeWarning)

from pywinsparkle import pywinsparkle
import os

def no_update_found():
""" when no update has been found, close the updater"""
print("No update found")
print("Setting flag to shutdown PassagesUpdater")

def found_update():
#""" log that an update was found """
print("New Update Available")

def encountered_error():
print("An error occurred")

def update_cancelled():
#""" when the update was cancelled, close the updater"""
print("Update was cancelled")
print("Setting flag to shutdown PassagesUpdater")

def shutdown():
#""" The installer is being launched signal the updater to shutdown """

# actually shutdown the app here
print("Safe to shutdown before installing")

def main():

# register callbacks
pywinsparkle.win_sparkle_set_did_find_update_callback(found_update)
pywinsparkle.win_sparkle_set_error_callback(encountered_error)
pywinsparkle.win_sparkle_set_update_cancelled_callback(update_cancelled)
pywinsparkle.win_sparkle_set_did_not_find_update_callback(no_update_found)
pywinsparkle.win_sparkle_set_shutdown_request_callback(shutdown)

# set application details
update_url = "http://localhost:8000/appcast.xml"
pywinsparkle.win_sparkle_set_appcast_url(update_url)
pywinsparkle.win_sparkle_set_app_details("Vestas", "Outview", "1.0.0")

if os.path.isfile('dsa_pub.pem'):
    with open('dsa_pub.pem', 'r') as file:
        pub_key = file.read()
    pywinsparkle.win_sparkle_set_dsa_pub_pem(pub_key)

# initialize
pywinsparkle.win_sparkle_init()

# check for updates
pywinsparkle.win_sparkle_check_update_with_ui()

# alternatively you could check for updates in the 
# background silently
#pywinsparkle.win_sparkle_check_update_without_ui()

# dont do it this way, just an example to keep the thread running
#while True:
    #time.sleep(1)

class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1054, 831)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
.
.
.
.
if name == "main":

app = QtWidgets.QApplication(sys.argv)
w = MainWindow()
w.show()
main()
sys.exit(app.exec_())`

Wheels not built for recent Python versions

The build script only builds wheels up to Python 3.6, while PSF has released 3.7, 3.8, 3.9, 3.10 and is about to release 3.11.
The build script should be updated to include these versions, and wheels uploaded to PyPI.

In fact, PyPI has v1.6.0, which appears to support Python 3.7, while this repo only has version 1.5.0 supporting Python 3.6, so there might be a commit that hasn't been pushed for that too?

Happy to send a PR for this if you'd welcome contributions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.