switch from PyQt6 to PySide6
PySide6 uses LGPL instead of GPL, which is much nicer to work with.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
from PyQt6.QtWidgets import *
|
||||
from PyQt6.QtGui import *
|
||||
from PyQt6.QtCore import Qt
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import Qt
|
||||
|
||||
import urlutils
|
||||
from cutesettings import CuteSettings
|
||||
from raven.pluginregistry import PluginRegistry
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
from types import ModuleType
|
||||
from typing import Dict, Optional
|
||||
from inspect import isclass
|
||||
from pkgutil import iter_modules
|
||||
from pathlib import Path
|
||||
from os.path import dirname
|
||||
from importlib import import_module
|
||||
from inspect import signature
|
||||
from raven.pluginbase import PluginBase
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os.path
|
||||
from typing import Callable, Optional
|
||||
|
||||
from PyQt6.QtWidgets import QMessageBox
|
||||
from PySide6.QtWidgets import QMessageBox
|
||||
|
||||
from fulltabwidget import FullTabWidget
|
||||
from logFileModel import LogFileModel
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from raven.plugins.ravenlog.Tab import Tab
|
||||
from PyQt6.QtWidgets import *
|
||||
from PySide6.QtWidgets import QTextEdit, QVBoxLayout
|
||||
|
||||
|
||||
class NotesWidget(Tab):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Callable
|
||||
|
||||
from PyQt6.QtCore import Qt
|
||||
from PySide6.QtCore import Qt
|
||||
|
||||
from raven.pluginbase import PluginBase
|
||||
from raven.pluginregistry import PluginRegistry
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import os
|
||||
from typing import Callable
|
||||
from pathlib import Path
|
||||
from PyQt6.QtGui import QAction, QIcon
|
||||
from PyQt6.QtWidgets import QMenu, QFileDialog
|
||||
from PySide6.QtWidgets import QFileDialog
|
||||
|
||||
from raven.pluginbase import PluginBase
|
||||
from raven.pluginregistry import PluginRegistry
|
||||
@@ -47,8 +46,9 @@ class OpenFilePlugin(PluginBase):
|
||||
dialog = QFileDialog()
|
||||
(selected_file, _filter) = dialog.getOpenFileName(
|
||||
caption=self.tr("Open File"),
|
||||
directory=directory
|
||||
dir=directory
|
||||
)
|
||||
# directory=directory
|
||||
if selected_file:
|
||||
self.open_file(selected_file)
|
||||
|
||||
@@ -71,7 +71,7 @@ class OpenFilePlugin(PluginBase):
|
||||
files = self._get_recent_files()
|
||||
for file in files:
|
||||
action = RAction(os.path.basename(file))
|
||||
action.set_action(lambda x, f=file: self.open_file(f))
|
||||
action.set_action(lambda _="", f=file: self.open_file(f))
|
||||
self._menu_recent_files.add_action(action)
|
||||
|
||||
def _remember_recent_file(self, file: str):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from abc import abstractmethod
|
||||
|
||||
from PyQt6.QtWidgets import QWidget
|
||||
from PySide6.QtWidgets import QWidget
|
||||
|
||||
|
||||
class Tab(QWidget):
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import sys
|
||||
from typing import Optional
|
||||
|
||||
from PyQt6.QtCore import Qt
|
||||
from PyQt6.QtWidgets import QDockWidget, QLabel
|
||||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtWidgets import QDockWidget
|
||||
|
||||
import constants
|
||||
from aboutdialog import AboutDialog
|
||||
|
||||
Reference in New Issue
Block a user