CurbStone_ 2023-02-27 15:33 采纳率: 80%
浏览 12
已结题

pycharm的帮助和提示的疑问

我在使用pycharm,发现以下两个问题:
1、 pycharm的提示或帮助,和实际不同。例如,如图,pyinstaller的--add-data 参数,实际上要写--add-data="源路径; 目标路径"才能正常执行。这是为什么呢?

img

2、tkinter.messagebox,在使用时发现弹窗的键盘焦点始终在”YES“上,如何设置到“NO”呢?
3、如何取得**options的详细使用说明?如下面的代码:

      def askyesno(title=None, message=None, **options):
      # 上面时pycharm提供的方法的帮助,并找不到**options的详细使用说明(很多方法说明都这样)。请问到哪里能详细使用说明?

  • 写回答

3条回答 默认 最新

  • CurbStone_ 2023-02-27 15:59
    关注

    我在TK的官方网站找到了这个。探索不易啊。这意味着,要进阶使用python,除了python官方网站的文档,还有研究每一个你用到的模块的官方网站,Tk、flask、django....
    The full list of possible options is shown here:

    type:
    As described above.
    message:
    The main message displayed inside the alert.
    detail:
    A secondary message (if needed).
    title:
    Title for the dialog window. Not used on macOS.
    icon:
    Icon, one of info (default), error, question, or warning.
    default:
    Default button, e.g., ok or cancel for an okcancel dialog.
    parent:
    Window of your application this dialog is being posted for.
    Additional details can be found in the reference manual.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 3月7日
  • 已采纳回答 2月27日
  • 修改了问题 2月27日
  • 创建了问题 2月27日