Exemple #1
0
    def __init__(self, parent ):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        ListManager.__init__(self, parent)
        self.setWidget( PresenterManagerBase() )
        self.setWindowTitle(self.__tr("Presentation Manager"))

        #connection of the DockWidget visibilityChanged
        self.visibilityChanged.connect(self.visibilityChangedx)

        #connections of the buttons
        self.widget().NameLE.returnPressed.connect(self.changedParams)
        self.widget().TimeoutSpinBox.valueChanged.connect(self.changedParams)
        self.widget().listBox2.itemClicked.connect(self.listViewClick)
        self.widget().UpButton.clicked.connect(self.up)
        self.widget().DownButton.clicked.connect(self.down)
        self.widget().BackButton.clicked.connect(self.backward)
        self.widget().ForwardButton.clicked.connect(self.forward)
        self.widget().ToEndButton.clicked.connect(self.goToEnd)
        self.widget().ToStartButton.clicked.connect(self.goToStart)
        self.widget().StopButton.clicked.connect(self.stop)
        self.widget().PlayButton.clicked.connect(self.play)
        self.widget().NewButton.clicked.connect(self.new) 
        self.widget().DeleteButton.clicked.connect(self.delete)
        self.widget().ChangeButton.clicked.connect(self.change)
        self.widget().LogitechButton.clicked.connect(self.startLogitech)

        #connect to cover
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_PLAY', self.play)
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_STOP', self.stop)
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_RELOAD', self.reload)
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_BACKWARD', self.backward)
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_FORWARD', self.forward)
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_GO_TO_END', self.goToEnd)
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_GO_TO_START', self.goToStart)
        theGuiMsgHandler().registerKeyWordCallback('PRESENTATION_SET_ID', self.goToPresentationPoint)

        #default settings
        #disable the name, timouot - no step is selected or even created
        self.widget().NameLE.setEnabled(False)
        self.widget().TimeoutSpinBox.setEnabled(False)
        self._enablePresenter(False)
        self.widget().textRunning.hide()

        # flags if new viewpoint should be created every time new step is created
        self._decisionSaved = False
        self._decision = True

        # param changed signal from object manager
        ObjectMgr().sigGuiParamChanged.connect( self.paramChangedFromNeg)
Exemple #2
0
 def _updateParamEdits( self ):
     _infoer.function = str(self._updateParamEdits)
     _infoer.write("")
     ListManager._updateParamEdits(self)
     self.widget().TimeoutSpinBox.setEnabled(True)
     self.widget().TimeoutSpinBox.setValue( self._key2Params[self._currentKey].timeout )
Exemple #3
0
from ListManager import ListManager
from Manga import Manga

# instantiate a chrome options object so you can set the size and headless preference
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--window-size=1920x1080")

driver = webdriver.Chrome(chrome_options=chrome_options,
                          executable_path='./chromedriver')
time.sleep(1)

# Notifier to notify the user when a new chapter of a manga is downloaded
notifier = Notifier()

liste_manager = ListManager()

for entry in liste_manager.lirescan_list:
    manga = Manga(entry["name"], entry["url"], entry["last_chapter"])
    driver.get(manga.url)
    # TODO appeler le bon scrapper correspondant au site du manga actuel

    # check if manga dir exist, if not, creates it
    dir_name = './images/' + manga.dir_name + '/'
    if not os.path.isdir(dir_name):
        os.mkdir(dir_name)

    is_last_chapter = False
    previous_chapter = manga.chapter
    while is_last_chapter == False:
Exemple #4
0
    def __init__(self, parent):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        ListManager.__init__(self, parent)
        self.setWidget(ViewpointManagerBase(parent))
        self.setWindowTitle(self.__tr("Viewpoint Manager"))

        #default settings
        #disable the name, timouot - no step is selected or even created
        self.widget().NameLE.setEnabled(False)

        # hide checkbox for clipplaneMode
        self.widget().checkClipplaneMode.hide()

        #connection of the DockWidget visibilityChanged
        self.visibilityChanged.connect(self.visibilityChangedS)
        #connections of the buttons
        self.widget().NameLE.returnPressed.connect(self.changedParams)
        self.widget().listBox2.itemClicked.connect(self.listViewClick)
        self.widget().NewButton.clicked.connect(self.new)
        self.widget().DeleteButton.clicked.connect(self.delete)
        self.widget().ChangeButton.clicked.connect(self.change)
        self.widget().checkFlyingMode.clicked.connect(self.toggleFlyMode)
        self.widget().checkClipplaneMode.clicked.connect(
            self.toggleClipplaneMode)
        #connection if params changed
        ObjectMgr().sigGuiParamChanged.connect(self.paramChangedFromNeg)

        self._enableViewpoints(False)
        self._addedKey = None
        self._fromPresentation = False
        # for change viewpoint
        self.lastKey = -1  # last chosen viewpoint
        # self._currentKey is the current viewpoint
        self._currentKey = -1

        #list of icon-pixmaps for default viewpoints
        self.__iconOfViewpoints = {}
        self.__functions = {}
        self.__iconOfViewpoints['back'] = ":/backView.png"
        self.__functions['back'] = self.showViewpointBack
        self.__iconOfViewpoints['bottom'] = ":/bottomView.png"
        self.__functions['bottom'] = self.showViewpointBottom
        self.__iconOfViewpoints['front'] = ":/frontView.png"
        self.__functions['front'] = self.showViewpointFront
        self.__iconOfViewpoints['left'] = ":/leftView.png"
        self.__functions['left'] = self.showViewpointLeft
        self.__iconOfViewpoints['right'] = ":/rightView.png"
        self.__functions['right'] = self.showViewpointRight
        self.__iconOfViewpoints['halftop'] = ":/someView.png"
        self.__iconOfViewpoints['top'] = ":/topView.png"
        self.__functions['top'] = self.showViewpointTop
        self.__iconOfViewpoints['center'] = ":/center.png"
        #list of buttons
        self.__buttons = {}
        self.__buttonIds = {}

        #grid layout for iconBar
        iconBarLayout = QtWidgets.QGridLayout(
            self.widget().iconBar)  #REM,1,1,5,-1,"iconBarLayout")
        # add iconGroup to iconBar
        self.iconGroup = QtWidgets.QGroupBox(self.widget().iconBar)
        # REM self.iconGroup.setLineWidth(0)
        iconBarLayout.addWidget(self.iconGroup, 0, 0)

        theGuiMsgHandler().registerKeyWordCallback('VIEW_CHANGED',
                                                   self.viewChanged)
Exemple #5
0
    def __init__(self, parent):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        ListManager.__init__(self, parent )
        self.setWidget(ViewpointManagerBase(parent))
        self.setWindowTitle(self.__tr("Viewpoint Manager"))

        #default settings
        #disable the name, timouot - no step is selected or even created
        self.widget().NameLE.setEnabled(False)

        # hide checkbox for clipplaneMode
        self.widget().checkClipplaneMode.hide()

        #connection of the DockWidget visibilityChanged
        self.visibilityChanged.connect(self.visibilityChangedS);
        #connections of the buttons
        self.widget().NameLE.returnPressed.connect(self.changedParams)
        self.widget().listBox2.itemClicked.connect(self.listViewClick)
        self.widget().NewButton.clicked.connect(self.new)
        self.widget().DeleteButton.clicked.connect(self.delete)
        self.widget().ChangeButton.clicked.connect(self.change)
        self.widget().checkFlyingMode.clicked.connect(self.toggleFlyMode)
        self.widget().checkClipplaneMode.clicked.connect(self.toggleClipplaneMode)
        #connection if params changed
        ObjectMgr().sigGuiParamChanged.connect(self.paramChangedFromNeg)

        self._enableViewpoints(False)
        self._addedKey = None
        self._fromPresentation = False
        # for change viewpoint
        self.lastKey = -1 # last chosen viewpoint
        # self._currentKey is the current viewpoint
        self._currentKey = -1
        
        #list of icon-pixmaps for default viewpoints
        self.__iconOfViewpoints = {}
        self.__functions = {}
        self.__iconOfViewpoints['back'] = ":/backView.png"
        self.__functions['back'] = self.showViewpointBack
        self.__iconOfViewpoints['bottom'] = ":/bottomView.png"
        self.__functions['bottom'] = self.showViewpointBottom
        self.__iconOfViewpoints['front'] = ":/frontView.png"
        self.__functions['front'] = self.showViewpointFront        
        self.__iconOfViewpoints['left'] = ":/leftView.png"
        self.__functions['left'] = self.showViewpointLeft      
        self.__iconOfViewpoints['right'] = ":/rightView.png"
        self.__functions['right'] = self.showViewpointRight        
        self.__iconOfViewpoints['halftop'] = ":/someView.png"
        self.__iconOfViewpoints['top'] = ":/topView.png"
        self.__functions['top'] = self.showViewpointTop
        self.__iconOfViewpoints['center'] = ":/center.png"
        #list of buttons
        self.__buttons = {}
        self.__buttonIds = {}

        #grid layout for iconBar
        iconBarLayout = QtWidgets.QGridLayout(self.widget().iconBar) #REM,1,1,5,-1,"iconBarLayout")
        # add iconGroup to iconBar
        self.iconGroup = QtWidgets.QGroupBox(self.widget().iconBar)
        # REM self.iconGroup.setLineWidth(0)
        iconBarLayout.addWidget(self.iconGroup,0,0)

        theGuiMsgHandler().registerKeyWordCallback('VIEW_CHANGED', self.viewChanged)
Exemple #6
0
"""
Making a DCI score reader and reddit poster bot
Brady Salz
6/22/15
"""

import datetime

from ListManager import ListManager


updater = ListManager()
updater.update_show_list()
updater.diff_show_post_lists()