我安装了 OSX Mavericks 以确保我正在开发的应用程序可以在这个系统上运行。我用 PyInstaller 编译(我使用 PYInstaller 的构建脚本运行没有错误)。
问题是当我双击可执行文件时,出现此错误:
Last login: Wed Jan 16 22:56:18 on ttys004
Mac-Pro-de-angelo:~ angelo$ /Users/angelo/miniconda3/envs/apsc/apsc_1_0_0_onefile_mac_osx/apsc ; exit;
objc[5125]: Class RunLoopModeTracker is implemented in both /var/folders/t0/s6_p_gn15798z_8m8w5f6vjm0000gn/T/_MEIWgQ7yV/libQt5Core.5.dylib and /Users/angelo/miniconda3/envs/apsc/lib/libQt5Core.5.6.2.dylib. One of the two will be used. Which one is undefined.
objc[5125]: Class NotificationReceiver is implemented in both /var/folders/t0/s6_p_gn15798z_8m8w5f6vjm0000gn/T/_MEIWgQ7yV/libQt5Widgets.5.dylib and /Users/angelo/miniconda3/envs/apsc/lib/libQt5Widgets.5.6.2.dylib. One of the two will be used. Which one is undefined.
objc[5125]: Class QCocoaPageLayoutDelegate is implemented in both /var/folders/t0/s6_p_gn15798z_8m8w5f6vjm0000gn/T/_MEIWgQ7yV/libQt5PrintSupport.5.dylib and /Users/angelo/miniconda3/envs/apsc/lib/libQt5PrintSupport.5.6.2.dylib. One of the two will be …Run Code Online (Sandbox Code Playgroud) 我正在尝试将图标向右对齐并将文本放在 QPushButton 中,但我目前对结果不满意。我还希望图标完全位于 QPushButton 的右侧,而不是与文本居中。同样,我希望它能够与位于右侧或左侧的图标一起使用,同时能够选择按钮的宽度。你有解决方案吗 ?你能帮助我吗 ?这是我现在的代码:
\n\n# Les boutons du bas pour passer d\'une page \xc3\xa0 l\'autre\nbout_pag_charg_enr_phase_1 = QPushButton("Aller directement \xc3\xa0 la page de maintenance de la S\xc3\xa9quence")\nbout_pag_charg_enr_phase_1.setFixedWidth(406)\nbout_pag_charg_enr_phase_1.setIcon(QIcon(\'logo_png_apsc\'+os.sep+\'icone_3_fleches_droite_apsc_256x256.png\'))\nbout_pag_charg_enr_phase_1.setIconSize(QSize(16, 16))\nbout_pag_charg_enr_phase_1.setLayoutDirection(Qt.RightToLeft)\nbout_pag_charg_enr_phase_1.setStyleSheet("text-align: center; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #fdfbf7, stop: 1 #6190F2);border-style: solid;border-width: 2px;border-radius: 8px;border-color: #9BB7F0;padding: 3px")\nbout_pag_suivante_phase_1 = QPushButton("Page suivante")\nbout_pag_suivante_phase_1.setFixedWidth(120)\nbout_pag_suivante_phase_1.setIcon(QIcon(\'logo_png_apsc\'+os.sep+\'icone_2_fleches_droite_apsc_256x256.png\'))\nbout_pag_suivante_phase_1.setIconSize(QSize(16, 16))\nbout_pag_suivante_phase_1.setLayoutDirection(Qt.RightToLeft)\nbout_pag_suivante_phase_1.setStyleSheet("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #fdfbf7, stop: 1 #6190F2);border-style: solid;border-width: 2px;border-radius: 8px;border-color: #9BB7F0;padding: 3px")\nRun Code Online (Sandbox Code Playgroud)\n\n我得到什么:
\n\n\n\n我想要的是: …