Skip to content

Support wxpython 4 - #34

Merged
pavoljuhas merged 93 commits into
diffpy:masterfrom
pavoljuhas:support-wxpython-4
Sep 24, 2019
Merged

pavoljuhas merged 93 commits into
diffpy:masterfrom
pavoljuhas:support-wxpython-4

Conversation

@pavoljuhas

@pavoljuhas pavoljuhas commented Jul 19, 2019 •

Copy link
Copy Markdown
Member

Work in progress

Implements #33.
This incorporates @dragonyanglong update_wxglade_version branch.

Status: PDFgui starts with plenty of wx deprecation warnings and
crashes with segfault after phase or dataset selection in the fit tree.

TODO

  • clean up deprecation warnings
  • make sure we stay compatible with wxpython3
    Ubuntu 16 provides only wxpython 3.
  • track and fix segfaults in wxpython4
  • fix monospace font

dragonyanglong and others added 10 commits July 19, 2019 15:36
Update `aboutdialog`, `calculation`, `datasetconfigure`, and `output`
panels to wxGlade 0.9.3 and wxpython 4.0.4.
No changes in code function.
Update all design files with wxglade 0.9.3.
Show relevant wxglade version and source-generation date.
OutputPanel was removed by editing generated code, but
remained in the wxg file, which put it back on code refresh.
Remove it now from both the code and wxg.
wxpython4 removed underscored plain functions.
`wx.grid.EVT_GRID_CMD_CELL_CHANGE` was removed.
Fix `wx.Font` arguments mismatch in wxpython 4.
sizer objects have been removed after upgrade to wxpython4.
Preserve compatibility with wxpython 3.
@codecov

codecov Bot commented Jul 19, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #34 into master will increase coverage by 31.75%.
The diff coverage is 90.41%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #34       +/-   ##
===========================================
+ Coverage   27.86%   59.61%   +31.75%     
===========================================
  Files          89       98        +9     
  Lines       11717    11988      +271     
===========================================
+ Hits         3265     7147     +3882     
+ Misses       8452     4841     -3611
Impacted Files Coverage Δ
src/diffpy/pdfgui/tests/TestPDFGuiControl.py 58.33% <ø> (-41.67%) ⬇️
src/diffpy/pdfgui/gui/supercelldialog.py 0% <0%> (ø) ⬆️
src/diffpy/pdfgui/gui/sgconstraindialog.py 15.66% <0%> (+15.66%) ⬆️
src/diffpy/pdfgui/gui/bondlengthdialog.py 0% <0%> (ø) ⬆️
src/diffpy/pdfgui/gui/sgstructuredialog.py 0% <0%> (ø) ⬆️
src/diffpy/pdfgui/gui/errorreportdialog.py 21.81% <0%> (-0.21%) ⬇️
src/diffpy/pdfgui/gui/phasepanelutils.py 42.24% <0%> (+42.24%) ⬆️
src/diffpy/pdfgui/tests/testinsertrowsdialog.py 100% <100%> (ø)
src/diffpy/pdfgui/gui/temperatureseriespanel.py 62.1% <100%> (+62.1%) ⬆️
src/diffpy/pdfgui/gui/calculationpanel.py 63.69% <100%> (+63.69%) ⬆️
... and 96 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3412cff...50943ae. Read the comment docs.

Must start with `FD_` prefix.
Drop single `FD_OPEN` which is already the default style.
PyTextDataObject --> TextDataObject
NamedColour --> Colour
InsertStringItem --> InsertItem
AddSimpleTool --> AddTool
Binding via event call is deprecated.
Fixes segmentation fault on SetBackgroundColour.
GetSizeTuple --> GetSize
GridCellAttr had under counted reference count.
Use `attr.IncRef()` before each `SetSomething(attr)` call.
First column in ParametersPanel grid is read-write.
Context manager to temporarily override `webbrowser.open`.
Remove unnecessary uncovered code.
icons were not installed with `pip installation`.
Ensure icon paths are correctly resolved.
Disable ErrorReportDialog when testing GUI widgets.
Add `_expand_tooltip_aliases` utility to help with repeated tooltips.
Handle overload for plain superclass Append.
MenuItem.SetText --> SetItemLabel
Window.GetPositionTuple --> GetPosition
Temporarily disable the PopupMenu method.
Fix hanging tests on Linux and travis.
Replace with `InsertItem`.  Keep as is for WX3.
Expose WX4 failure due to renamed constant.
- `CHANGE_DIR` --> `FD_CHANGE_DIR`
- `OVERWRITE_PROMPT` --> `FD_OVERWRITE_PROMPT`
- `SAVE` --> `FD_SAVE`
As of matplotlib 1.2 the `NavigationToolbar2Wx.save` method
was renamed to `save_figure`.  The `save` function in the
derived class ExtendedToolbar is thus never called.
Path resolution of libgsl.a has been fixed in pdffit2 1.2.
@pavoljuhas
pavoljuhas merged commit 50943ae into diffpy:master Sep 24, 2019
@pavoljuhas
pavoljuhas deleted the support-wxpython-4 branch September 24, 2019 15:24
@pavoljuhas pavoljuhas mentioned this pull request Dec 3, 2020
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants