OASYS2-XRayServer 1.0.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2/OASYS2_XRayServer.egg-info}/PKG-INFO +2 -2
  2. oasys2_xrayserver-1.0.2/OASYS2_XRayServer.egg-info/requires.txt +3 -0
  3. {oasys2_xrayserver-1.0.0/OASYS2_XRayServer.egg-info → oasys2_xrayserver-1.0.2}/PKG-INFO +2 -2
  4. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/util/xrayserver_util.py +9 -7
  5. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/gui/ow_xrayserver_widget.py +3 -3
  6. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/__init__.py +1 -1
  7. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/ow_gid_sl.py +8 -6
  8. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/ow_ter_sl.py +6 -7
  9. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/ow_x0h.py +2 -1
  10. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/ow_x0p.py +2 -2
  11. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/setup.py +2 -2
  12. oasys2_xrayserver-1.0.0/OASYS2_XRayServer.egg-info/requires.txt +0 -3
  13. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/LICENSE +0 -0
  14. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/MANIFEST.in +0 -0
  15. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/OASYS2_XRayServer.egg-info/SOURCES.txt +0 -0
  16. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/OASYS2_XRayServer.egg-info/dependency_links.txt +0 -0
  17. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/OASYS2_XRayServer.egg-info/entry_points.txt +0 -0
  18. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/OASYS2_XRayServer.egg-info/not-zip-safe +0 -0
  19. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/OASYS2_XRayServer.egg-info/top_level.txt +0 -0
  20. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/README.md +0 -0
  21. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/__init__.py +0 -0
  22. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/__init__.py +0 -0
  23. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/util/__init__.py +0 -0
  24. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/util/list_utility.py +0 -0
  25. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/__init__.py +0 -0
  26. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/gui/__init__.py +0 -0
  27. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/icons/gidsl.png +0 -0
  28. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/icons/list.png +0 -0
  29. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/icons/no_standing_waves_result.png +0 -0
  30. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/icons/tersl.png +0 -0
  31. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/icons/x0h.png +0 -0
  32. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/icons/x0p.png +0 -0
  33. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/orangecontrib/xrayserver/widgets/xrayserver/icons/xrayserver.png +0 -0
  34. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/pyproject.toml +0 -0
  35. {oasys2_xrayserver-1.0.0 → oasys2_xrayserver-1.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OASYS2-XRayServer
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: X-Ray Server: Sergey Stepanov's X-Ray Server on OASYS 2
5
5
  Home-page: https://github.com/oasys-kit/OASYS2-XRayServer
6
6
  Download-URL: https://github.com/oasys-kit/OASYS2-XRayServer
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Intended Audience :: Science/Research
17
17
  License-File: LICENSE
18
18
  Requires-Dist: oasys2>=0.0.1
19
- Requires-Dist: PyQtWebEngine>=5.15.7
19
+ Requires-Dist: PyQt6-WebEngine>=6.9.0
20
20
  Requires-Dist: dabax
21
21
  Dynamic: author
22
22
  Dynamic: author-email
@@ -0,0 +1,3 @@
1
+ oasys2>=0.0.1
2
+ PyQt6-WebEngine>=6.9.0
3
+ dabax
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OASYS2-XRayServer
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: X-Ray Server: Sergey Stepanov's X-Ray Server on OASYS 2
5
5
  Home-page: https://github.com/oasys-kit/OASYS2-XRayServer
6
6
  Download-URL: https://github.com/oasys-kit/OASYS2-XRayServer
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Intended Audience :: Science/Research
17
17
  License-File: LICENSE
18
18
  Requires-Dist: oasys2>=0.0.1
19
- Requires-Dist: PyQtWebEngine>=5.15.7
19
+ Requires-Dist: PyQt6-WebEngine>=6.9.0
20
20
  Requires-Dist: dabax
21
21
  Dynamic: author
22
22
  Dynamic: author-email
@@ -2,8 +2,10 @@ import os
2
2
 
3
3
  from orangewidget import gui
4
4
 
5
- from PyQt5 import QtWidgets
6
- from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
5
+ try: from AnyQt.QtWebEngineWidgets import QWebEngineView as QWebView
6
+ except: from AnyQt.QtWebKitWidgets import QWebView
7
+
8
+ from AnyQt.QtWidgets import QDialog, QVBoxLayout, QScrollArea, QDialogButtonBox
7
9
 
8
10
  import matplotlib
9
11
  import urllib
@@ -99,24 +101,24 @@ class XRayServerPlot:
99
101
  plot_window.setGraphYLimits(min(y), max(y)*1.01)
100
102
  plot_window.replot()
101
103
 
102
- class ShowHtmlDialog(QtWidgets.QDialog):
104
+ class ShowHtmlDialog(QDialog):
103
105
 
104
106
  def __init__(self, title, html_text, width=650, height=400, parent=None):
105
- QtWidgets.QDialog.__init__(self, parent)
107
+ QDialog.__init__(self, parent)
106
108
  self.setModal(True)
107
109
  self.setWindowTitle(title)
108
- layout = QtWidgets.QVBoxLayout(self)
110
+ layout = QVBoxLayout(self)
109
111
 
110
112
  web_view = QWebView(self)
111
113
  web_view.setHtml(html_text)
112
114
 
113
- text_area = QtWidgets.QScrollArea(self)
115
+ text_area = QScrollArea(self)
114
116
  text_area.setWidget(web_view)
115
117
  text_area.setWidgetResizable(True)
116
118
  text_area.setFixedHeight(height)
117
119
  text_area.setFixedWidth(width)
118
120
 
119
- bbox = QtWidgets.QDialogButtonBox(QtWidgets.QDialogButtonBox.Ok)
121
+ bbox = QDialogButtonBox(QDialogButtonBox.Ok)
120
122
 
121
123
  bbox.accepted.connect(self.accept)
122
124
  layout.addWidget(text_area)
@@ -2,8 +2,8 @@ import numpy
2
2
 
3
3
  from oasys2.widget.widget import OWWidget, OWAction
4
4
 
5
- from PyQt5.QtWidgets import QApplication, QSizePolicy
6
- from PyQt5.QtCore import QRect
5
+ from AnyQt.QtWidgets import QApplication, QSizePolicy
6
+ from AnyQt.QtCore import QRect
7
7
 
8
8
  import oasys2.widget.gui as oasysgui
9
9
  from oasys2.canvas.util.canvas_util import ShowTextDialog
@@ -24,7 +24,7 @@ class XrayServerWidget(OWWidget):
24
24
  self.runaction.triggered.connect(self.submit)
25
25
  self.addAction(self.runaction)
26
26
 
27
- geom = QApplication.desktop().availableGeometry()
27
+ geom = QApplication.primaryScreen().geometry()
28
28
  self.setGeometry(QRect(round(geom.width()*0.05),
29
29
  round(geom.height()*0.05),
30
30
  round(min(geom.width()*0.98, self.MAX_WIDTH)),
@@ -17,4 +17,4 @@ BACKGROUND = "#CAB244"
17
17
 
18
18
  ICON = "icons/xrayserver.png"
19
19
 
20
- PRIORITY = 3001
20
+ PRIORITY = 7.0
@@ -1,4 +1,7 @@
1
1
  import numpy
2
+
3
+ from AnyQt.QtWidgets import QTextEdit, QLineEdit
4
+
2
5
  from orangewidget import gui
3
6
  from orangewidget.settings import Setting
4
7
  from orangewidget.widget import Output
@@ -15,7 +18,6 @@ from orangecontrib.xrayserver.util.xrayserver_util import HttpManager, XRayServe
15
18
  from orangecontrib.xrayserver.util.list_utility import ListUtility
16
19
  from orangecontrib.xrayserver.widgets.gui.ow_xrayserver_widget import XrayServerWidget, XrayServerException
17
20
 
18
- from PyQt5 import QtWidgets
19
21
 
20
22
  APPLICATION = "/cgi/gid_form.pl"
21
23
 
@@ -394,7 +396,7 @@ class GID_SL(XrayServerWidget):
394
396
 
395
397
  box_top_0_2 = oasysgui.widgetBox(box_top_0, "", addSpace=False, orientation="horizontal", width=360)
396
398
 
397
- self.profile_area = QtWidgets.QTextEdit()
399
+ self.profile_area = QTextEdit()
398
400
  self.profile_area.setStyleSheet("background-color: white;")
399
401
  self.profile_area.setMaximumHeight(110)
400
402
  self.profile_area.setMaximumWidth(360)
@@ -418,21 +420,21 @@ class GID_SL(XrayServerWidget):
418
420
  oasysgui.widgetBox(box_top_1, "", addSpace=False, orientation="horizontal", width=100)
419
421
  box_top_1_2 = oasysgui.widgetBox(box_top_1, "", addSpace=False, orientation="horizontal", width=360)
420
422
 
421
- crystals_area = QtWidgets.QTextEdit()
423
+ crystals_area = QTextEdit()
422
424
  crystals_area.setStyleSheet("background-color: white;")
423
425
  crystals_area.setMaximumHeight(100)
424
426
  crystals_area.setMaximumWidth(120)
425
427
  crystals_area.setText("\n".join(ListUtility.get_list("crystals")))
426
428
  crystals_area.setReadOnly(True)
427
429
 
428
- non_crystals_area = QtWidgets.QTextEdit()
430
+ non_crystals_area = QTextEdit()
429
431
  non_crystals_area.setStyleSheet("background-color: white;")
430
432
  non_crystals_area.setMaximumHeight(100)
431
433
  non_crystals_area.setMaximumWidth(120)
432
434
  non_crystals_area.setText("\n".join(ListUtility.get_list("amorphous")))
433
435
  non_crystals_area.setReadOnly(True)
434
436
 
435
- elements_area = QtWidgets.QTextEdit()
437
+ elements_area = QTextEdit()
436
438
  elements_area.setStyleSheet("background-color: white;")
437
439
  elements_area.setMaximumHeight(100)
438
440
  elements_area.setMaximumWidth(120)
@@ -472,7 +474,7 @@ class GID_SL(XrayServerWidget):
472
474
  except:
473
475
  pass
474
476
 
475
- if event: QtWidgets.QLineEdit.focusOutEvent(self.le_alphamax, event)
477
+ if event: QLineEdit.focusOutEvent(self.le_alphamax, event)
476
478
 
477
479
  def set_TemplateType(self, change_values=True):
478
480
  if self.template_type == 0:
@@ -1,9 +1,8 @@
1
1
  import numpy
2
2
 
3
- from PyQt5.QtCore import QSize, Qt
4
- from PyQt5.QtGui import QImage,QPixmap, QPainter, QPalette, QFont, QColor
5
- from PyQt5.QtWidgets import QLabel, QWidget
6
- from PyQt5 import QtWidgets
3
+ from AnyQt.QtCore import QSize, Qt
4
+ from AnyQt.QtGui import QImage,QPixmap, QPainter, QPalette, QFont, QColor
5
+ from AnyQt.QtWidgets import QLabel, QWidget, QTextEdit
7
6
 
8
7
  import orangecanvas.resources as resources
9
8
  from orangewidget import gui
@@ -253,11 +252,11 @@ class TER_SL(XrayServerWidget):
253
252
 
254
253
  box_top_1 = oasysgui.widgetBox(box_top, "", addSpace=False, orientation="horizontal", width=470)
255
254
 
256
- self.profile_area = QtWidgets.QTextEdit()
255
+ self.profile_area = QTextEdit()
257
256
  self.profile_area.setStyleSheet("background-color: white;")
258
257
  self.profile_area.setMaximumHeight(240)
259
258
  self.profile_area.setMaximumWidth(335)
260
- self.profile_area.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
259
+ self.profile_area.setLineWrapMode(QTextEdit.NoWrap)
261
260
 
262
261
  box_top_1.layout().addWidget(self.profile_area)
263
262
 
@@ -267,7 +266,7 @@ class TER_SL(XrayServerWidget):
267
266
 
268
267
  gui.label(box_top_labels, self, "Available Codes:")
269
268
 
270
- crystals_area = QtWidgets.QTextEdit()
269
+ crystals_area = QTextEdit()
271
270
  crystals_area.setStyleSheet("background-color: white;")
272
271
  crystals_area.setMaximumHeight(295)
273
272
  crystals_area.setMaximumWidth(130)
@@ -16,7 +16,8 @@ from orangecontrib.xrayserver.util.xrayserver_util import HttpManager, XRayServe
16
16
  from orangecontrib.xrayserver.widgets.gui.ow_xrayserver_widget import XrayServerWidget, XrayServerException
17
17
 
18
18
 
19
- from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
19
+ try: from AnyQt.QtWebEngineWidgets import QWebEngineView as QWebView
20
+ except: from AnyQt.QtWebKitWidgets import QWebView
20
21
 
21
22
  APPLICATION = "/cgi/x0h_form.exe"
22
23
 
@@ -13,8 +13,8 @@ from orangecontrib.xrayserver.util.xrayserver_util import HttpManager, XRayServe
13
13
  from orangecontrib.xrayserver.widgets.gui.ow_xrayserver_widget import XrayServerWidget, XrayServerException
14
14
  from oasys2.canvas.util.canvas_util import ShowTextDialog
15
15
 
16
- from PyQt5 import QtGui
17
- from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
16
+ try: from AnyQt.QtWebEngineWidgets import QWebEngineView as QWebView
17
+ except: from AnyQt.QtWebKitWidgets import QWebView
18
18
 
19
19
  APPLICATION = "/cgi/x0p_form.exe"
20
20
 
@@ -8,7 +8,7 @@ except AttributeError:
8
8
  from setuptools import find_packages, setup
9
9
 
10
10
  NAME = 'OASYS2-XRayServer'
11
- VERSION = '1.0.0'
11
+ VERSION = '1.0.2'
12
12
  ISRELEASED = True
13
13
 
14
14
  DESCRIPTION = 'X-Ray Server: Sergey Stepanov\'s X-Ray Server on OASYS 2'
@@ -41,7 +41,7 @@ SETUP_REQUIRES = (
41
41
 
42
42
  INSTALL_REQUIRES = (
43
43
  'oasys2>=0.0.1',
44
- 'PyQtWebEngine>=5.15.7',
44
+ 'PyQt6-WebEngine>=6.9.0',
45
45
  'dabax',
46
46
  )
47
47
 
@@ -1,3 +0,0 @@
1
- oasys2>=0.0.1
2
- PyQtWebEngine>=5.15.7
3
- dabax