AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[gtk3](ubuntu)

Martin Hope
kenn
Asked: 2020-11-09 01:28:27 +0800 CST

mate-panel 时钟小程序非等宽字体导致通知区域摆动

  • 5

我正在运行 Ubuntu 20.04 mate 桌面。我正在定制伴侣面板。我想使用以下数字字体,并将以下样式添加到~/.config/gtk-3.0/gtk.css

#clock-applet-button.flat.toggle > box.horizontal > label {
    font-weight: normal;
    color: white;
    font-family: DS-Digital;
    font-weight: bold;
    font-size: 18px;
    /*padding-right: 10px;
    padding-left: 10px; */
    /*letter-spacing: 3px;*/
    /*margin: 8px; 
    margin-left: 14px;
    margin-right: 14px;*/
    padding: 0 15px 0 15px;
    font-stretch: ultra-condensed;
    outline-offset: 100px;
    background-color: red;
    /*border-left-width: 50px;
    border-right-width: 50px;*/
    /*outline-width: 20px;*/     
}
  

当数字浓缩时它会摆动,例如当时钟数字从00到计数时,它的宽度会发生变化01

我录了在此处输入图像描述

我尝试添加边距、填充,但它们不起作用。有没有技巧来修复它gtk css?

fonts css gtk3 mate
  • 1 个回答
  • 289 Views
Martin Hope
Quasímodo
Asked: 2020-10-15 12:05:56 +0800 CST

如何通过 Apt 安装 GTK 小部件工厂?

  • 4

GTK 小部件工厂对于可视化和创建 GTK 主题很有用。搜索引擎将我带到了一些网站1、2,这些网站建议从源代码构建它或添加 PPA。主存储库中没有安装它的软件包吗?

我也试过

apt-cache search widget factory
apt-cache search gtk factory

但没有找到合适的。

gnome themes apt gtk3
  • 1 个回答
  • 2449 Views
Martin Hope
Janriz Libres
Asked: 2020-07-26 02:38:33 +0800 CST

Python 3 找不到“gi”模块

  • 1

当我试图运行时,这个问题就开始了redshift-gtk。我手动安装了程序,它通过 just 运行良好redshift,但我希望它与指示器一起运行。我总是得到以下输出:

Traceback (most recent call last):
File "/usr/local/bin/redshift-gtk", line 26, in <module>
from redshift_gtk.statusicon import run
File "/usr/local/lib/python3.8/site-packages/redshift_gtk/statusicon.py", line 30, in <module>
import gi
ModuleNotFoundError: No module named 'gi'

我确实认为这更像是一个普遍问题,而不是特定于红移的问题。我已经安装了必要的先决条件:

python3-gi is already the newest version (3.36.0-1)
python3-gi-cairo is already the newest version (3.36.0-1).
gir1.2-gtk-3.0 is already the newest version (3.24.20-0ubuntu1)

我试过执行locate python3-gi,结果如下:

/snap/gnome-3-28-1804/128/usr/share/doc/python3-gi
/snap/gnome-3-28-1804/128/usr/share/doc/python3-gi-cairo
/snap/gnome-3-28-1804/128/usr/share/doc/python3-gi/changelog.Debian.gz
/snap/gnome-3-28-1804/128/usr/share/doc/python3-gi/copyright
/snap/gnome-3-28-1804/128/usr/share/doc/python3-gi-cairo/copyright
/usr/share/doc/python3-gi
/usr/share/doc/python3-gi-cairo
/usr/share/doc/python3-gi/changelog.Debian.gz
/usr/share/doc/python3-gi/copyright
/usr/share/doc/python3-gi-cairo/changelog.Debian.gz
/usr/share/doc/python3-gi-cairo/copyright
/var/lib/dpkg/info/python3-gi-cairo.list
/var/lib/dpkg/info/python3-gi-cairo.md5sums
/var/lib/dpkg/info/python3-gi.list
/var/lib/dpkg/info/python3-gi.md5sums
/var/lib/dpkg/info/python3-gi.postinst
/var/lib/dpkg/info/python3-gi.prerm

所以我不知道为什么我有一个“没有名为'gi'的模块”错误。我还安装了 python-gobject:

python-gobject is already the newest version (3.34.0+2.28.6-14ubuntu1)

这是我当前的linux版本:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal

这里有什么问题?

python drivers python3 gtk3 redshift
  • 1 个回答
  • 953 Views
Martin Hope
Richard Logwood
Asked: 2020-07-18 08:48:25 +0800 CST

PlayOnLinux 不适用于 wxPython 4.1.0 - ImportError:没有名为 wxversion 的模块,需要改为 wx.version

  • 2

最新版本的 wxPython 不支持 wxversion 模块。相反,信息以 wx.version 的形式提供。

有什么建议的解决方法吗?谢谢!

我的环境是 Ubuntu 20.04 LTS、pyenv、python 3.8.3、python 2.7.18、wxPython 4.1.0

$ apt-cache policy playonlinux
playonlinux:
  Installed: 4.3.4-1ubuntu1
  Candidate: 4.3.4-1ubuntu1
  Version table:
 *** 4.3.4-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal/multiverse i386 Packages
        100 /var/lib/dpkg/status

$ which playonlinux
/usr/bin/playonlinux

# *** note: i'm using pyenv ***

$ pyenv local 2.7.18

$ which python2
/home/dever/.pyenv/shims/python2

$ python2 -V
Python 2.7.18

$ pyenv local 3.8.3

$ which python3
/home/dever/.pyenv/shims/python3

$ python3 -V
Python 3.8.3

安装的 Python 3.8.3 配置有 wxPython 4.1.0

$ python
Python 3.8.3 (default, Jul 16 2020, 20:35:40) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print(wx.version)
<function version at 0x7ff77d3cbd30>
>>> print(wx.version())
4.1.0 gtk3 (phoenix) wxWidgets 3.1.4
>>> quit()

因此,playonlinux 命令失败并出现以下错误:

$ playonlinux
Looking for python... 3.8.3 - skipped
Looking for python2.7... 2.7.18 - Traceback (most recent call last):
  File "/usr/share/playonlinux/python/check_python.py", line 1, in <module>
    import os, wxversion
ImportError: No module named wxversion
failed tests
Looking for python2.6... 
Looking for python2... 2.7.18 - Traceback (most recent call last):
  File "/usr/share/playonlinux/python/check_python.py", line 1, in <module>
    import os, wxversion
ImportError: No module named wxversion
failed tests
Please install python before trying to run this program

注意:对于那些因为 GTK+ 错误而在 Ubuntu 20.04 LTS 上安装 wxPython 的人*** Could not run GTK+ test program, checking why...

试试这个命令(在这里找到:https ://wxpython.org/pages/downloads/ )

pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython

有关其他上下文,另请参阅:https ://discuss.wxpython.org/t/where-to-obtain-wxversion-py/28752

playonlinux 最初安装如下,但在 Ubuntu 20.04 LTS(我从 19.10 升级)上重新安装了标准存储库:

我正在运行的 playonlinux 版本适用于从此处下载的 Ubuntu 18.04(仿生版本):https ://www.playonlinux.com/en/download.html

For the Bionic version

Type the following commands:
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_bionic.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

也许 playonlinux 被 flatpak 版本取代了?

查看https://www.playonlinux.com上的 Github 链接会将您带到https://github.com/PhoenicisOrg/,这表明解决方案可能是迁移到 flatpak 版本:

https://flathub.org/apps/details/org.phoenicis.playonlinux

python wine gtk3 playonlinux wxpython
  • 2 个回答
  • 2943 Views
Martin Hope
smelm
Asked: 2020-03-12 12:46:33 +0800 CST

18.04:需要更新到 GTK 3.24

  • 3

我需要将我的 GTK 版本从 3.20 更新到 3.24 以从源代码构建一个包。

跑步

sudo apt install libgtk-3-0

给我。

libgtk-3-0 is already the newest version (3.22.30-1ubuntu4).

我尝试从源代码构建它,这导致 glib 出现同样的问题。当我试图从源代码构建它时,这反过来又告诉我我的介子版本太旧了。那时我意识到必须有更好的方法。

有没有办法使用 apt (或任何其他工具)安装足够新版本的 GTK?似乎有Debian Sid的版本。

我正在运行 Ubuntu 18.04,因此将 apt 设置为仿生存储库。

apt glib gtk3
  • 1 个回答
  • 4522 Views
Martin Hope
urmish
Asked: 2020-01-10 23:25:49 +0800 CST

gtk+-quartz-3.0 包在哪里?(尝试编译webkitgtk)

  • 0
prompt:> cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


-- The CMake build type is: RelWithDebInfo
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Checking for module 'gtk+-quartz-3.0'
--   No package 'gtk+-quartz-3.0' found
-- Found the following ICU libraries:
--   data (required)
--   i18n (required)
--   uc (required)
CMake Error at /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:452 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal)
  Source/cmake/FindLibSoup.cmake:35 (pkg_check_modules)
  Source/cmake/OptionsGTK.cmake:30 (find_package)
  Source/cmake/WebKitCommon.cmake:56 (include)
  CMakeLists.txt:169 (include)


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/Downloads/webkitgtk-2.26.2/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/Downloads/webkitgtk-2.26.2/CMakeFiles/CMakeError.log".

我已经libgtk-3-dev使用 apt 包管理器安装了。

我正在尝试使用 deb 包安装 citrix 接收器。但是它需要额外的软件包:

dpkg: dependency problems prevent configuration of icaclient: 
icaclient depends on libwebkit-1.0-2 | libwebkitgtk-1.0-0; 
however: 
Package libwebkit-1.0-2 is not installed. 
Package libwebkitgtk-1.0-0 is not installed.

这就是我从网站安装 webkit gtk 源代码的原因,(https://webkitgtk.org/) 特别是这个链接: https://webkitgtk.org/releases/webkitgtk-2.26.2.tar.xz

gtk compiling gtk3 webkit
  • 1 个回答
  • 571 Views
Martin Hope
Jihan
Asked: 2019-12-22 11:07:39 +0800 CST

如何更改 Yaru 主题中的按钮颜色?

  • 3

我想将橙色更改为Yaru 主题中关闭按钮的其他颜色。 如何通过编辑css文件来完成?

gnome themes gtk3 icon-themes gnome-tweaks
  • 2 个回答
  • 2145 Views
Martin Hope
JohnD
Asked: 2019-11-21 05:12:33 +0800 CST

白色背景上的进化白色文本

  • 1

我在带有“Adwaita-dark”主题的 Ubuntu 18.04 上使用 Evolution 3.28.5-0ubuntu0.18.04.1。

我收到的电子邮件是白色背景上的白色文本。

我不明白为什么因为原始电子邮件是白色背景上的黑色文本,如果进化正在修改文本颜色,为什么不是背景颜色?

请问我该如何解决?

(我认为它在上周起作用,因为我不记得在我所有的电子邮件中都对这种问题感到恼火)。

gnome themes gtk evolution gtk3
  • 1 个回答
  • 1165 Views
Martin Hope
Smurfz87
Asked: 2019-10-30 06:24:59 +0800 CST

当自定义 GTK-3 主题位于符号链接中时,Evince Document Viewer 主题解析错误导致 GUI 不可见

  • 1

.themes将文件夹替换为$HOME指向已安装驱动器上内容的符号链接时出现以下错误:

(evince:28717): Gtk-WARNING **: 13:21:16.921: Theme parsing error: 
gtk.css:1:0: Failed to import: 
Error opening file $HOME/.themes/Flat-Remix-GTK-Dark-Solid/gtk-3.0/gtk.css: Permission denied


(evince:31282): Gtk-WARNING **: 13:32:54.277: 
Error loading theme icon 'dialog-password' for stock: 
Icon 'dialog-password' not present in theme Flat-Remix-Dark

结果是一个完全不可见的 GUI,如此处所述

GitHub 问题中提供的解决方案已在新版本中得到解决,另外值得一提的是 Evince 是通过 Apt 而不是 Snap 安装的。

如果我将符号链接替换为.themes 文件夹中的内容,GUI 将返回$HOME。作为符号链接的文件夹似乎不会影响我迄今为止看到的任何其他应用程序。

themes evince gtk3
  • 1 个回答
  • 938 Views
Martin Hope
jII
Asked: 2019-07-20 13:08:33 +0800 CST

如何在带有 GNOME shell 的 Ubuntu 18.04 中从 Windows 中删除圆角边框?

  • 3

如何在 Ubuntu 18.04 中使窗口边缘呈方形(而不是圆形)?我正在使用 Ambiance 主题。

在此处输入图像描述

我尝试了什么(在 18.04 上没有任何成功):

  1. 如何在 GNOME Shell 中删除圆角边框的解决方案?,它来自使用 GNOME shell 的旧版本 Ubuntu(11.04?)。

  2. How to make ambiance title bar corners square中的解决方案?,当 Unity 是默认设置时,它在 Ubuntu 16.04 中对我有用。

有趣的是,问题Rounded corners of windows is trying to remove square corners(它通过删除来实现~/.config/gtk-3.0/gtk.css)所以大概我需要向该文件添加一些代码。

关于需要什么 CSS 代码的任何想法?

themes gtk window gtk3 18.04
  • 1 个回答
  • 5490 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve