widget

Dynamically enabling or disabling a widget does not work

We would like to enable or disable widgets via code. When we say "disable" we mean that a widget which is registered in an application should not show up in the list of widgets available to the user when they try to add a widget to their home screen. This question has been asked, unfortunately, many times without answer. There w...

Background color for GTK_WINDOW_TOPLEVEL Gtk Widget

In the following code, I want the background colour of the main GTK_WINDOW_TOPLEVEL to be 0xc0deed. But when I run it is appearing black. I even tried gtk_drawing_area_new and adding it to the main window. But still it is appearing black although I could get other colours like red, blue, white etc #include <gtk/gtk.h> int main( int arg...

Django: Best Way to Add Javascript to Custom Widgets

I'm writing a custom widget that requires some supporting javascript code that I need output somehwere. The options are: Dump it right after the html code. Append it to the form's media. Append it to a global onReady section. My gut instinct is to avoid things like: <!-- original widget output --> <input id="date" /> <-- Appended j...

Facebook Live Stream Widget Statistics

We are using Facebook's Live Stream widget to go alongside a live video stream. Worked well but I am trying to find out how many wall posts/status updates were made through the widget during the event. The live stream widget does have a FB App that goes along with it, but do see any app statistics that seem to connect to users posting ...

Looking for a rotation widget for java

I have a function in my java app that rotates an image by x degrees. Right now I pop up a simple JOptionPane that collects the rotation angle as a double from the user. Is there a java widget that would allow the user to click / drag to a point on a circle to set the rotation angle visually? Already checked out: AWT, SWT, Swing ...

how do I create a widget of my web application

Hello everyone, I want to create a small widget of my website. This widget will facilitate easy viewing of latest content posted on the website embedding it on other website. posting of comments instantly to my website from within the widget How shall I start building such widget. I heard of this CROWDSOUND, and this is exactly ...

Creation of buton in an androidi widget

hello, I am trying to write a code for an SMS widget. I wrote something that I can compil, and print on screen my first sms. When I click on next, nothing happend... this my code: package android.MySMSwidget; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.net.Uri; import android.os...

How to clear the entry widget in a GUI after a button is pressed in python

I'm trying to clear the entry widget after the user presses a button using tkinter in python. I tried using ent.delete(0,END) but I got an error saying that strings dont have the attribute delete here is my code: I'm getting error on real.delete(0, END). secret = randrange(1,100) print(secret) def res(real, secret): if secret==eval...

Fixing the size of a GTK Widget?

I am attempting to fix the size of a widget in GTK+, specifically using Gtk2hs with Haskell. I have drawn an image in a DrawingArea and I would like to specify the exact size of this drawing area. I do not want other widgets or the user to make this widget larger or smaller. Is this possible? Note, I am using ghc version 6.10.4 under U...

How can I give users a javascript widget to pull content securely from my site

I need to be allow content from our site to be embeded in other users web sites. The conent will be chargeable so I need to keep it secure but one of the requirements is that the subscribing web site only needs to drop some javascript into their page. It looks like the only way to secure our content is to check the url of the page hosti...

What php code do I need to get text from wordpress text widget?

I am adding some additional logic to page.php in a wordpress theme. This theme already has 4 sidebar widgets (north, south, east, west). I need to get the text that is entered into a text widget from the wp-admin widget panel within my page.php code. This logic is "outside the wordpress loop". ...

What is the best way to create a web widget that gets parameters from the site that holds it and use those parameters for a web application on a different URL.

I would like to build a widget that should be embedded easily in any kind of website. The widget needs to get a few parameters from the website that holds it, and the widget will run a web application that located in a different URL using those parameters. i thought about using an script that have the web application url as the source ...

Is there a common format for desktop widgets?

I'd like to develop a gadget (a.k.a. widget) that would be multi-platform. Namely, I'm interested in OS X and KDE4 (Plasma). Is there any way that I do it without writing the code twice? Language is not the problem here, although Python is preferred. ...

GWT carousel widget

Hello, I'm currently working on a GWT project, in which I need to use a "carousel" widget. The carousel widget is supposed to display pieces of information and 2 arrows - when the user clicks on one of the arrow, the content is moved with an animation and replaced with new content. I've been looking through the available widget libs,...

Can I turn ON XSS in my browser locally?

I am developing a widget (HTML, JavaScript) for a platform which allows the (trusted) widget to make XSS calls. I can test the code by packaging the widget, and using the emulator, but that takes 2 or 3 minutes to reboot every time I make a simple JavaScript code-change. Is there a way to turn ON XSS support in Firefox, or any other br...

Manipulating DOM of Multiple dijit Widget Instances

I have developed a custom dijit Templated Widget. I have to do some DOM manipulation of the children of the containerNode. Everything works fine, except when I have two of the Widgets loaded, and the manipulation of the children of the containerNode seems to affect all of the Widgets of the same type, not just the particular instance o...

GWT - Many widgets or a widget containing other widgets

Hi, I'm designing the user interface. It has some static content and a lot of widgets. Wich is better? HTML with a widget containing the other widgets HTML containing all widgets thx a lot... ...

DatePicker Widget (NOT Dialog) OnDateSet / OnClick event?

How do I know when the date has been changed in a DatePicker widget? OnClick does not fire and there are no other useful events. ...

How Do I Restrict All WordPress Widgets To A Given Category?

How do I restrict all WordPress widgets to a given category? Such as, have a popdown listbox on my sidebar that lets me choose a bird category and all the widget data on that sidebar stick with that given bird category. I'm thinking I need some kind of filter with add_filter() but don't understand the process. The docs on this are incomp...

Can a home widget have a Context?

In an activity it's (usually) easy to get the Context. What if I am working with a home widget class? These are classes that extends AppWidgetProvider, which don't contain a Context! Thank you. ...