Re: app changed look after updating to wxpython 4.0.6

Björn Johansson <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
I think I found the reason, and I decided to put it here for reference.
The wxpython packaged by conda forge (4.0.6) pulls in its own gtk2
see the meta.yaml 
<https://github.com/conda-forge/wxpython-feedstock/blob/master/recipe/meta.yaml>
.

The standard anaconda channel has another package 
<https://anaconda.org/anaconda/wxpython> (4.0.4) that does not, so I 
presume it uses the system gtk somehow.

I assume that I perhaps could make the anaconda gtk use whatever settings 
or 
themes from the system installation. For now I will revert to the second 
standard (Anaconda) 
package instead of the one from conda-forge.












On Saturday, October 12, 2019 at 8:22:23 AM UTC+1, Björn Johansson wrote:
>
> Hi, thanks for your reply. I run Linux Mint 19.2 Cinnamon 4.2.4, but you 
> are right anaconda seem to package its own GTK as far as I can tell. 
>
> I have googled around for how to set gtk themes, but came up with nothing. 
> I suspect that I can use the
> gobject-introspection which also seem installed?
>
> # packages in environment at /home/bjorn/anaconda3/envs/wikidpad37:
> #
> # Name                    Version                   Build  Channel
> _libgcc_mutex             0.1                        main    defaults
> asn1crypto                1.0.1                    py37_0    conda-forge
> atk                       2.32.0               haf93ef1_0    conda-forge
> biopython                 1.74             py37h516909a_0    conda-forge
> bzip2                     1.0.8                h516909a_1    conda-forge
> ca-certificates           2019.9.11            hecc5488_0    conda-forge
> cairo                     1.16.0            hfb77d84_1002    conda-forge
> certifi                   2019.9.11                py37_0    conda-forge
> cffi                      1.12.3           py37h8022711_0    conda-forge
> chardet                   3.0.4                 py37_1003    conda-forge
> cryptography              2.7              py37h72c5cf5_0    conda-forge
> expat                     2.2.5             he1b5a44_1003    conda-forge
> fontconfig                2.13.1            h86ecdb6_1001    conda-forge
> freetype                  2.10.0               he983fc9_1    conda-forge
> fribidi                   1.0.5             h516909a_1002    conda-forge
> gdk-pixbuf                2.36.12           h7a26e22_1003    conda-forge
> gettext                   0.19.8.1          hc5be6a0_1002    conda-forge
> glib                      2.58.3            h6f030ca_1002    conda-forge
> gobject-introspection     1.58.2          py37h5503ade_1002    conda-forge
> graphite2                 1.3.13            hf484d3e_1000    conda-forge
> gst-plugins-base          1.14.5               h0935bb2_0    conda-forge
> gstreamer                 1.14.5               h36ae1b5_0    conda-forge
> gtk2                      2.24.32              h586f36d_1    conda-forge
> harfbuzz                  2.4.0                h9f30f68_3    conda-forge
> icu                       64.2                 he1b5a44_1    conda-forge
> idna                      2.8                   py37_1000    conda-forge
> jpeg                      9c                h14c3975_1001    conda-forge
> libblas                   3.8.0               13_openblas    conda-forge
> libcblas                  3.8.0               13_openblas    conda-forge
> libffi                    3.2.1             he1b5a44_1006    conda-forge
> libgcc-ng                 9.1.0                hdf63c60_0    defaults
> libgfortran-ng            7.3.0                hdf63c60_0    defaults
> libglu                    9.0.0             hf484d3e_1000    conda-forge
> libiconv                  1.15              h516909a_1005    conda-forge
> liblapack                 3.8.0               13_openblas    conda-forge
> libopenblas               0.3.7                h6e990d7_1    conda-forge
> libpng                    1.6.37               hed695b0_0    conda-forge
> libstdcxx-ng              9.1.0                hdf63c60_0    defaults
> libtiff                   4.0.10            h57b8799_1003    conda-forge
> libuuid                   2.32.1            h14c3975_1000    conda-forge
> libxcb                    1.13              h14c3975_1002    conda-forge
> libxml2                   2.9.9                hee79883_5    conda-forge
> lz4-c                     1.8.3             he1b5a44_1001    conda-forge
> ncurses                   6.1               hf484d3e_1002    conda-forge
> numpy                     1.17.2           py37h95a1406_0    conda-forge
> olefile                   0.46                       py_0    conda-forge
> openssl                   1.1.1c               h516909a_0    conda-forge
> pango                     1.42.4               ha030887_1    conda-forge
> pathlib2                  2.3.5                    py37_0    conda-forge
> pcre                      8.41              hf484d3e_1003    conda-forge
> pillow                    6.2.0            py37h6b7be26_0    conda-forge
> pip                       19.2.3                   py37_0    conda-forge
> pixman                    0.38.0            h516909a_1003    conda-forge
> pthread-stubs             0.4               h14c3975_1001    conda-forge
> pycparser                 2.19                     py37_1    conda-forge
> pyopenssl                 19.0.0                   py37_0    conda-forge
> pyparsing                 2.4.2                      py_0    conda-forge
> pypubsub                  4.0.3                      py_0    conda-forge
> pysocks                   1.7.1                    py37_0    conda-forge
> python                    3.7.3                h33d41f4_1    conda-forge
> readline                  8.0                  hf8c457e_0    conda-forge
> requests                  2.22.0                   py37_1    conda-forge
> setuptools                41.4.0                   py37_0    conda-forge
> six                       1.12.0                py37_1000    conda-forge
> sqlite                    3.30.1               hcee41ef_0    conda-forge
> tk                        8.6.9             hed695b0_1003    conda-forge
> urllib3                   1.25.6                   py37_0    conda-forge
> wheel                     0.33.6                   py37_0    conda-forge
> wikidpadmp                2.4a1.dev1                dev_0    <develop>
> wxpython                  4.0.6            py37h8f66242_1    conda-forge
> xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
> xorg-libice               1.0.10               h516909a_0    conda-forge
> xorg-libsm                1.2.3             h84519dc_1000    conda-forge
> xorg-libx11               1.6.9                h516909a_0    conda-forge
> xorg-libxau               1.0.9                h14c3975_0    conda-forge
> xorg-libxdmcp             1.1.3                h516909a_0    conda-forge
> xorg-libxext              1.3.4                h516909a_0    conda-forge
> xorg-libxrender           0.9.10            h516909a_1002    conda-forge
> xorg-renderproto          0.11.1            h14c3975_1002    conda-forge
> xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
> xorg-xproto               7.0.31            h14c3975_1007    conda-forge
> xz                        5.2.4             h14c3975_1001    conda-forge
> zlib                      1.2.11            h516909a_1006    conda-forge
> zstd                      1.4.0                h3b9ef0a_0    conda-forge
>
>
> On Friday, October 11, 2019 at 11:53:51 PM UTC+1, Robin Dunn wrote:
>>
>> On Wednesday, October 9, 2019 at 11:19:26 PM UTC-7, Björn Johansson wrote:
>>>
>>> Hi, I run a wxpython app from wxpython installed with Anaconda on Linux 
>>> Mint 19.2 Cinnamon.
>>> See the app to the left in the screenshot (wikidpad) vs the one to the 
>>> right (xed).
>>> The app to the left looks different from the normal theme (right).
>>>
>>> How can I fix this?
>>>
>>
>>
>> There are a couple possibilities. It could be a GTK2 vs GTK3 difference. 
>> More likely, I think, it could be that the conda environment has its own 
>> instance of the GTK libraries and other dependencies, and they are using 
>> their own theme (or just the default theme-less settings) instead of the 
>> theme set for the rest of the system.
>>  
>>
>> --
>> Robin
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/61fee5b4-571e-4fff-bec2-895fde061e89%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.