Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从 QtGui.QDialog 继承的应用程序类。我必须重新加载显示功能但保存功能。我从 C# 中得到这个想法。在那里我可以做这样的事情:
static void show() { // My code... base.show(); }
我想做类似的事情,但使用 python 和 qt (PyQt)。我可以这样做吗?
检查super()函数,但请注意一些陷阱。
我试过这个例子:
#!C:/Perl64/bin/perl.exe $mickey = "Hi i'm Mickey"; $pluto = "Hi i'm Pluto"; print <<EOF; $pluto Hi i'm Goofy $mickey EOF print &