widgets

Is is possible to host Silverlight widgets from a WPF app?

If I wanted to create some Silverlight widgets and host them within WPF is this possible? I've searched for examples & found a few concepts online but no approaches that actually panned out / work / and a bunch of dead links. Has anyone successfully done this or any ideas for how to do this? Any help is appreciated. ...

How to make all widgets state to disabled in tk?

Hi, Is there way to disable all widget in tk window with single proc? argument can be just initial toplevel path. ...

Django: using ForeignKeyRawIdWidget outside of admin forms [Solved]

I'm trying to find some documentation of how to use the ForeignKeyRawIdWidget in my own forms. Currently I keep getting the error, "init() takes at least 2 non-keyword arguments (1 given)" which tells me nothing. Any help would be most appreciated. Googling this turns up little but dev conversations and no examples that I can find of ho...

Add/Remove items from one set to form a subset

What is it called when you have a box with all of the elements from a set and you have buttons to add/remove those items to form a subset of those items? Apples Cherries Oranges Add-> Watermellon Grapes <-Remove Pears Kiwi ...

Where are wordpress default widget files or functions located?

I'm trying to slightly modify the default wordpress tag cloud widget. I don't want to create my own widget because I literally want to adjust one small thing. I've looked through my wordpress installation but can't find the php file that contains the basic widgets. Even though I assume that they are defined in each theme, I still look...

[PyGTK] How can I show a widget and all its parent containers?

In my program, there is a point where all widgets are hidden. Is there a simple way to show a widget and all of its parent containers? I am not able to use show_all(), because that would show other widgets that I don't want shown. I could go down the containers and show them all, but I would prefer not to if there is a more concise solut...

How to share stylesheet types across GWT widgets

Hi I'm attempting to create a composite widget, which will show a 'list' of child widgets, but I'm having some trouble getting css to work in this setting. Have constructed a simple demo, to try and figure out a solution. Have tried to specify the parent widget like this <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g...

embeddable widgets using jquery and ASP.NET MVC

hello. I need some advice for the best approach to use in developing embeddable widgets that my site users could use to show our content on their site. Let's say we have some content which uses a jquery plugin to be rendered, and we want to give our customers an easy way to embed it in their websites. one option could be of using an I...

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...

Where is ContentWidget.CwConstants located and what is it?

I´ve just started learning GWT and I´m trying to implement http://gwt.google.com/samples/Showcase/Showcase.html#!CwFileUpload and but failing miserably. Where is the ContentWidget.CwConstants suppose to come from and what exactly is it? public static interface CwConstants extends Constants, ContentWidget.CwConstants { String ...

how to use ForeignKeyRawIdWidget

Hi I want to extend ForeignKeyRawIdWidget so I want to be able to use it without setting raw_id_fields. With the follwoing I don't get an error but I see no effect: # models.py class Product(models.Model): ... class GroupProduct(Product): ... products = models.ManyToManyField(Product, related_name="%(class)s_related") # ...

define the queryset of ModelMultipleChoiceField in the widget

Hi I'm using ModelMultipleChoiceField with a large number of objects. I want to show only the selected objects and let the user remove a choice with js. To add choices the user will open a popup similar to ManyToManyRawIdWidget. I can limit the queryset to the selected choices in the init of the form with: def __init__(self, *args, **...

Displaying C# code in Wordpress.com

I have researched this for a few hours and I am kind of frustrated. Maybe I am just missing something as I am new to blogging. I am not hosting my own blog, I am just using WordPress.com. I want to include snippets of c# code and have them look like they do in Visual Studio, or at least make them look nice, certainly with line numbers a...

Is it possible to know whether Windows widget totally covered by other windows?

We want to create a Windows desktop version of our weather widget There are 2 special things about the widget. It consumes a lot of processor time while active - it displays an animated picture (Flash without GPU acceleration, unfortunately). It updates the weather from our server (frequent server requests from all widget users). Wh...

Framework for third-party web application extensibility

I'm interested in people's experiences and opinions about approaches to third-party extensibility in web applications and extending applications into a heterogenous corporate environment. Consider a Salesforce style application. Users want to be able to extend the Salesforce application itself and share data / functionality outside of S...

Isn't there a standard jQuery pop-up menu component?

I'd expect a right-click-context-menu-style pop-up menu to be a part of jQuery UI. But apparently it isn't. What's the de-facto standard out there? Or is everybody just rolling out their own ones? Example ...

Swapping one widget with another in Qt

What is the best way to "swap" one QGraphicsWidget with another in an existing view? I have a tree view widget and a label widget, and I want them to occupy the same space at different times. Specifically, when there's an error, I want to show it in the label, and when there's no error, I want to show the tree. I have tried programmatic...

Qt::X11BypassWindowManagerHint functionality on Windows

Hi I'm currently developing a cross-plataform virtual keyboard. In linux i was able to do whatever i want, but in Windows i'm having problems to prevent the widget to obtain the keyboard focus. In linux, using the window flag Qt::X11BypassWindowManagerHint the widget never gets the keyboard input, but of course, that flag does not ...

scrollable tab bar widget solution

I have a web page that I use to update a fairly complex data structure. The page itself has lots of information, so I developed some simple Tab-page control, with plain html. Each tab is a different page, so when the user click on a tab a post is issued to the new page. Fairly simply. The problem is that the page has about 10 tabs, s...

PyQt4 Custom Widgets

Are there any good PyQt4 custom widgets like at Qt-Apps.org? I would like to start making PyQt custom widgets but online resources that I find don't seem to be clear For example, Trolltech's and Zetcode's don't seem to be related in any way at all. Thanks for any input :) ...