コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3484 ビュー

hi

i want to create a button to do the hotkey "ctrl+p".

the following code in my .xml file:


<button string="Print PDF" name="print_report" type="object" class="oe_highlight" icon="fa-print"/>
and in .py file:
import pyautogui
@api.one
def print_report(self):
return pyautogui.hotkey('ctrl', 'p')
those codes are properly work in microsoft edge and internet explore , but not work in chorome. why?
please help me to find the solution.
thanks

アバター
破棄
著作者 最善の回答


    return pyautogui.hotkey('ctrl', 'shift','p')
It's done.


アバター
破棄
関連投稿 返信 ビュー 活動
2
9月 19
3283
1
1月 20
4998
0
11月 16
4309
0
9月 23
1859
0
9月 23
1574