Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3602 Tampilan

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

Avatar
Buang
Penulis Jawaban Terbai


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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Sep 19
3461
1
Jan 20
5141
0
Nov 16
4439
0
Sep 23
2080
0
Sep 23
1825