[IPython-dev] Camera widget

Jason Grout jason-sage@creativetrax....
Thu Feb 27 10:24:07 CST 2014


On 2/26/14 11:00 PM, Doug Blank wrote:
> BTW, if you give the button an id, <button id = picture_button>, then
> you can:
>
>      def click(self):
>
> display(Javascript("document.getElementById('picture_button').click();"));
>
> which will programmatically take a picture.

But giving the button a specific single html id makes it so you can only 
have one such button on a page.

Jason



More information about the IPython-dev mailing list