如何控制GTK行间文本间距

时间:2018-07-23 23:18:42

标签: python gtk pygtk

使用GTK(Python),对GTK来说是个新手。我想显示一个字母网格,适合例如单词拼图,但我无法使线条足够靠近。使用表格,在每个单元格中带有Label对象。还尝试使用TextView,希望它可以提供比Label更多的控制权,但结果相同。实现紧密排列的线的最简单方法是什么?下面的代码示例。

interface ISuccessResponse {
    Success: boolean;
    Message: string;
}

interface IAppVersion extends Partial<ISuccessResponse> {
    OSVersionStatus: number;
    LatestVersion: string;
}

declare const version: IAppVersion;
version.Message // Type is string | undefined

1 个答案:

答案 0 :(得分:1)

OK, more research has turned up Cairo, which seems to provide the answer. Line drawing and positioning text at arbitrary places are all easily achieved. Sorry to waste your time with dumb noob questions, but I hope this post may be of use to other GTK learners.