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
    • 最新
    • 标签
主页 / user-949315

Newtron Malayalam's questions

Martin Hope
Newtron Malayalam
Asked: 2020-05-01 05:32:35 +0800 CST

Ubuntu 20.04 中的 apt install "*" 方法不起作用 [重复]

  • 6
这个问题在这里已经有了答案:
使用带有 apt 的通配符的问题 5 个答案
2年前关闭。

我试图使用 安装所有 python 包sudo apt install python3*,但它给了我这个错误:

newtron@newtron:~$ sudo apt install python3*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python3*
software-installation command-line apt 20.04
  • 2 个回答
  • 4336 Views
Martin Hope
Newtron Malayalam
Asked: 2020-04-18 21:09:45 +0800 CST

ubuntu 中的用户管理器如何从 gui 添加用户

  • 2

谁能描述 gnome 或任何其他 DE 中的用户管理器如何使用 GUI 在没有命令行的情况下添加用户?它如何将 adduser 函数和 GTK 绑定在一起?

在此处输入图像描述

gnome gui adduser
  • 1 个回答
  • 729 Views
Martin Hope
Newtron Malayalam
Asked: 2020-04-09 08:39:17 +0800 CST

“file --mime-type path”如何适用于没有扩展名的文件

  • 0

要查找我们不知道的文件 mime 类型,我们将使用带有 --mime-type 参数的文件命令。我们知道它显示的是基于给定文件路径扩展名的结果(例如 *.py 的 text/x-python)。有关扩展名和 mime 类型之间关系的列表将保存在 /etc/mime.type 或 /usr/share/mime/glob 等某处。但是没有任何扩展名的文件呢?我们怎样才能找到 MIME 类型?请解释。我们可以用python做同样的事情吗?

command-line python files mime-type
  • 1 个回答
  • 1070 Views
Martin Hope
Newtron Malayalam
Asked: 2020-01-08 10:12:36 +0800 CST

如何编辑 Xfce 注销菜单?

  • 3

我想自定义 Xfce 会话的注销菜单。

在此处输入图像描述

我需要编辑哪个文件来更改菜单选项?

customization xfce
  • 2 个回答
  • 3853 Views
Martin Hope
Newtron Malayalam
Asked: 2020-01-06 18:16:04 +0800 CST

如何从 gnome 面板 QML PyQt5 隐藏正在运行的应用程序图标

  • 1

我正在开发像 gnome 中的 conky 这样的小部件管理器。我只想从正在运行的应用程序或从这里隐藏我的应用程序图标(显示所有其他正在运行的应用程序图标)在此处输入图像描述

这是我的 qml 文件

import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12

Window {
    id:window
    visible: true
    width: 500
    flags: Qt.AlignLeft
    height: 375
    color: "transparent"
    title: qsTr("Nidgets")
    Timer{
        interval:100
        running: true
        repeat: true
        onTriggered: {
            time.text = Qt.formatDateTime(new Date(), "hh:mm A")
            date.text = Qt.formatDateTime(new Date(), "yyyy MMMM dd")
        }
    }

    Item {
        id: element1
        x: 0
        y: 0
        width: 200
        anchors.fill: parent
        height: 200
        focus: true
        Keys.onPressed: {
            if ((event.key === Qt.Key_F11) && (event.modifiers & Qt.ControlModifier)){
                if(window.flags == Qt.FramelessWindowHint)
                    window.flags = 0
                else
                    window.flags = Qt.FramelessWindowHint
            }
        }

        Text {
            id: date
            x: 310
            y: 205
            color: "#ffffff"
            text: Qt.formatDateTime(new Date(), "yyyy MMMM dd")
            font.pixelSize: 24
        }

        Text {
            id: time
            x: 74
            y: 86
            color: "#ffffff"
            anchors.centerIn: parent
            text: Qt.formatDateTime(new Date(), "hh:mm A")
            anchors.verticalCenterOffset: -45
            anchors.horizontalCenterOffset: 35
            font.pointSize: 75

        }


    }
}

我的 main.py 文件

import sys
from PyQt5.QtCore import QObject, QUrl
from PyQt5.QtWidgets import QApplication
from PyQt5.QtQuick import QQuickView
from PyQt5.QtQml import QQmlApplicationEngine
from threading import Thread
import os
import importlib

if __name__ == '__main__':
    myApp = QApplication(sys.argv)

    engine = QQmlApplicationEngine()
    context = engine.rootContext()
    context.setContextProperty("main", engine)

    engine.load('main.qml')

    win = engine.rootObjects()[0]
    win.show()

    sys.exit(myApp.exec_())
gnome pyqt5 qml
  • 2 个回答
  • 808 Views
Martin Hope
Newtron Malayalam
Asked: 2019-10-10 05:55:16 +0800 CST

如何通过具有“onClick”功能的命令在 gnome 中创建通知?

  • 3

我们可以使用简单的命令创建通知。

前任:notify-send 'SUPER IMPORTANT!' 'This is an urgent message!' -u critical

我们可以让它可点击并在点击它时运行脚本吗?喜欢

当我们点击像这样由 Nautilus 文件管理器发送的通知时 在此处输入图像描述

它直接打开一个新窗口。但是我们的自定义通知没有做任何事情。当我们点击它时,如何让我们的自定义通知做一个活动。

notification gnome command-line
  • 1 个回答
  • 2163 Views
Martin Hope
Newtron Malayalam
Asked: 2019-10-08 07:35:08 +0800 CST

如何在 python 中列出“ls /usr/share/applications”的重播

  • 0

如何使用 'ls /usr/share/applications' 命令列出 usr/share/applications 中的所有 .desktop 文件,并使其成为 python3.7 中的列表变量?

喜欢

list1 = replayof('command')
print1 = list(list1)
print(print1)
python3
  • 1 个回答
  • 58 Views
Martin Hope
Newtron Malayalam
Asked: 2019-09-03 08:06:35 +0800 CST

我可以在重置跟踪器时绕过是或否问题吗

  • 2

我想创建一个桌面快捷方式来使用tracker-reset -e. 它每次都显示一个是或否的问题。我可以绕过它吗?

command-line tracker
  • 2 个回答
  • 608 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