python GUI界面如何设置外边框,且外边框上带字? 字体外面怎么加边框

9800℃ MICHAEL

python GUI界面如何设置外边框,且外边框上带字?字体外面怎么加边框

怎么给字体外边加外边框?

字体打好之后,使用矩形工具在外面画个框圈起来,然后描边路径,描边粗细可以设置,然后删除路径就可以了

python3 tkinter中如何设置根窗口标题文字字体及大小和根菜单文字字体及大小?

family: 字体类别,如'Fixdsys'

size: 作为一个整数,以点字体的高度。为了获得字体的n个像素高,使用-n

weight: "BOLD" 表示加粗, "NORMAL" 表示正常大小,默认是NORMAL

slant:斜体(默认正常), “NORMAL”表示正常,"ITALIC"表示字体倾斜

underline:下划线,1表示添加下滑线,0表示没有,默认值为0

overstrike:删除线,1表示添加删除线,0表示没有,默认值为0

扩展资料

Tkinter 模块(Tk 接口)是 Python 的标准 Tk GUI 工具包的接口 .Tk 和 Tkinter 可以在大多数的 Unix 平台下使用,同样可以应用在 Windows 和 Macintosh 系统里。Tk8.0 的后续版本可以实现本地窗口风格,并良好地运行在绝大多数平台中。

Jython:Jython 程序可以和 Java 无缝集成。除了一些标准模块,Jython 使用 Java 的模块。Jython 几乎拥有标准的Python 中不依赖于 C 语言的全部模块。比如,Jython 的用户界面将使用  Swing,AWT或者 SWT。Jython 可以被动态或静态地编译成 Java 字节码。

参考资料来源:

百度百科——Python

请问怎么在一个字的外面加个外边框

如果是在word中,这是比较简单的,在“字体”选项中的右下角,有一个带圈的字,里面就有输入的字外加加框的办法了。

python图形界面

这是pyqt4的代码:(你想要安装才可以使用)

from PyQt4 import QtCore, QtGui

class Ui_helloword(object):

    def setupUi(self, helloword):

        helloword.setObjectName("helloword")

        helloword.resize(400, 300)

        self.label = QtGui.QLabel(helloword)

        self.label.setGeometry(QtCore.QRect(70, 80, 54, 12))#位置

        self.label.setObjectName("label")

        self.retranslateUi(helloword)

        QtCore.QMetaObject.connectSlotsByName(helloword)

    def retranslateUi(self, helloword):

        helloword.setWindowTitle(QtGui.QApplication.translate("helloword", "Form", None, QtGui.QApplication.UnicodeUTF8))

        self.label.setText(QtGui.QApplication.translate("helloword", "你好世界", None, QtGui.QApplication.UnicodeUTF8))

if __name__ == "__main__":

    import sys

    app = QtGui.QApplication(sys.argv)

    helloword = QtGui.QWidget()

    ui = Ui_helloword()

    ui.setupUi(helloword)

    helloword.show()

    sys.exit(app.exec_())