FAQ Database Discussion Community


Why does the Google Translate widget look different from what it should be?

widget,translation,google-translate
I'm trying to put the Google Translate widget on my page, but it doesn't look like it used to. Is this a change on Google's end? Or is there a setting? Here is the page where I'm getting the code: http://translate.google.com/manager/website/settings This is how it used to look: But this...

How to set the images of a Switch in Kivy?

python,widget,kivy
Hej I like to customize the On/Off Switch in kivy. For a Button I know how to do it. The kv code looks like this: Button: background_normal: 'gfx/offButton.png' background_down: 'gfx/onButton.png' Now I whant to know it for the Switch widget. Any Ideas?...

Custom WordPress widget is wrapping all other widgets below it

php,wordpress,widget
I am trying to write a custom widget to display our teamspeak server info. This is what I have so far: <?php /* Plugin Name: Site Plugin for RealmReborn.co Description: Site specific code changes for RealmReborn.co */ /* Start Adding Functions Below this Line */ // Creating the widget class...

Use form field with select2 widget in smarty yii

widget,smarty,yii2
I would like to use this example from Kartik with Smarty. use kartik\widgets\Select2 // Usage with ActiveForm and model echo $form->field($model, 'state_1')->widget(Select2::classname(), [ 'data' => array_merge(["" => ""], $data), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => [ 'allowClear' => true ], ]); In Smarty only the field...

Recall remoteView instead of creating new one?

android,widget,remoteview
I have a Flashlight widget that stops responding after the launcher is restarted, for example when date is changed in system, the launcher resets on my phone. According to this thread on SO: Link, I need to update the remoteView instead of creating new one every time. However I don't...

Pyqt Embedding Graphics object in Widget

python,layout,widget,pyqt
So I have a main window. I use setCentralWidget to set it to a class I made called mainWindowWidget to handle the UI. I am now trying to add a graphics view widget I made to that but cannot seem to get anything to display. If I set the graphics...

Registering sidebar with or without hook

wordpress,widget
I'm little bit confused on it. When registering sidebar in a function file of Wordpress, we use register_sidebar() function and pass arguments in it. Without using any action hook, the sidebar works very fine. However, in the codex i've seen a action hook named 'widget_init' is used to register sidebar....

How can I get my searchable activity to launch when my search bar widget is clicked, not when I press enter?

android,listview,widget,searchview
I have a searchbar widget on top of a mapview, and what I would like is when I click that widget, a the mapview is replaced by a listview which dynamically changes the displayed items as I enter my query and keep the searchbar widget on top. Then when I...

Trying to align two columns in a specific way using HTML within a Wordpress Widget

html,css,wordpress,widget
.::Edit::. Fixed Broken Images. -- I've been trying to align this for a few days now, and I simply don't have the know how to accomplish it. I photoshopped what I am trying to get this table to look like, but when I try to create a table, I either...

Wrap pygtk Window after destroying widgets

resize,widget,window,pygtk,wrap
I'm creating an app using pygtk with different mode: mode "normal" which use a PathBrowse and a ComboBox mode "append" which destroy the PathBrowse and the combo in the Window and add others like CheckBox and Labels But in append mode, the fact of destroying widgets bigger than the new...

Wordpress do_shortcode work in one widget but not another

php,wordpress,widget,shortcode
I have a couple of shortcodes that I wan't to be able to use in my widgets. I've added add_filter('widget_text', 'do_shortcode'); to functions.php (theme) and it works well when I use the default WP "Text" widget. But when I try the shortcodes in my own widgets (I've developed them myself)...

Get location of a widget to allow drawing a line from widget a to b

java,widget,swt
Hi I am working on adding a link between 2 classes on a class diagram to show their relation, the class diagram view allows for adding as many classes as the user wants. This is being done in SWT and the classes (which are a square button) are added dynamically...

On/Off time(datetime field) doesn't cleared after cancel button is pressed

extjs,widget,cq5,aem
I open page properties and fill some fields After I pressed cancel button, and reopened properties dialog, all field cleared, but datetime fields didn't. What is the rigth way to clear datetime fields?...

how to display page's attachment image in wordpress custom widget

php,wordpress,image,widget,attachment
So I have this custom widget where you can select a page from a drop box and the widget will lead you to this page. The problem is i have no idea how to display the page's attachment image. wp_get_attachment_image($page, 'full') doesn't work. In the codex there's an example with...

“Waiting to attach” issue in iOS 8 with Today Extensions

ios,widget,today-extension
I've got a serious issue and can't figure out where is the problem ! First this question has already been answered in two other threads : iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach BUT, my problem is different : I've got 10 widgets, and...

Hide Widget based on condition using Widget Logic Plugin

wordpress,plugins,widget
My website (http://www.chicagokaraokenight.com/wordpress) is a karaoke directory where bars can list karaoke nights for free OR upgrade to a premium or featured premium listing (paid packages) to receive a more robust profile. As part of the benefit to upgrading to a paid package, I'd like to have some widgets disappear...

Pass variable to Ipython Widget

python,input,widget,ipython
I have a simple widget that modifies a plot, here is the definition: #Plot function def plf(x,lm,ls): plt.plot(x[lm:ls],np.sin(x)[lm:ls]) this function takes a list x an plot sin(x), lm and ls controls the number of data that is ploted, the problem is when i try to plot a determinated list of...

Use different library instead of jQuery Mobile for