【问题标题】:GTK2 and Perl ManualGTK2 和 Perl 手册
【发布时间】:2012-04-18 06:31:33
【问题描述】:

我是第一次学习 Perl,但我发现很难找到一些关于 GTK2 库的语言文档。我完全了解Perl Manual,但它并未涵盖 GTK2 上的任何内容。那么,我在哪里可以找到带有 GTK2 手册的有据可查的 Perl?以 PHP 为例。

提前致谢!

【问题讨论】:

    标签: perl manual gtk2


    【解决方案1】:

    你看过Perl GTK2 home吗?他们那里有一些documentation

    顺便说一句,有一个名为perldoc 的命令将显示任何Perl 模块的内置文档。它还包含任何函数、pragma 等的完整文档。例如:

    $ perldoc Gtk2          #Help on the Gtk2 module
    $ perldoc Data::Dumper  #Help with the Data::Dumper Perl module
    $ perldoc -f open       #Help with the built in Perl _open_ command
    $ perldoc -q data       #Questions in the FAQ that have the keyword _data_ in them.
    

    当然,Perldoc webpage 包含所有标准包含的文档。 CPAN 模块将在带有该模块的 CPAN 网页上显示其 Perl 文档。

    顺便问一下,你知道cpan 命令吗?这就是您在CPAN webpage 中找到的download and install 模块的方式。所有这些东西都很好,但是有很多假设大多数人都知道这些东西。在我意识到你应该使用cpan 命令来安装 Perl 模块之前,我是一名 Perl 程序员已有十多年了。直到几年前我才知道perldoc 命令,尽管我已经知道 POD(普通旧文档),它是 Perl 的标准文档方式。

    【讨论】:

      【解决方案2】:

      我找到的最好的文档是 Dirk van der Walt 的 Gtk2-Perl 学习指南 从这里链接。

      http://gtk2-perl.sourceforge.net/doc/

      grant mclean 这里有一个很好的例子 http://live.gnome.org/GTK2-Perl/GladeXML/Tutorial

      【讨论】:

        【解决方案3】:

        第三方模块的文档(至少在理论上)包含在模块本身中,可通过perldoc Module::Name 和各种web interfaces to CPAN 访问。

        【讨论】:

          【解决方案4】:

          GladeXML tutorial on GNOME Live 可能有用,它使用 Glade,但对于 Gtk2+Perl 来说是一个好的开始。

          【讨论】:

            猜你喜欢
            • 2020-04-12
            • 1970-01-01
            • 2021-09-24
            • 2018-09-17
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多