有没有办法,如何将键盘快捷键分配给“切换线条注释,然后将光标向下移动一行?”
答案 0 :(得分:0)
改编自评论:
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GdkPixbuf, GLib
#...
now = GLib.TimeVal(); now.add( GLib.get_real_time() )
iter = pixbuf.get_iter( now )
scaled_pixbufs = []
while True:
delay = iter.get_delay_time()
now.add( delay * 1000.0 ) #milisecond -> microsecond conversion
pbuf = iter.get_pixbuf().copy()
scaled_pixbufs.append( pbuf )
if iter.advance( now ):
break
:scaled_pixbufs