FAQ Database Discussion Community


Setting Radiobutton to swich between lists

python,matplotlib,widget,radio-button
I am trying to create a plot with vertical bars equal to score length, AND with a radiobutton which enables the user to choose which level scores he/she wants to see, as such: Button 1: Shows the pointscores of John and Daniel in level 1. Button 2: Shows the pointscores...

Android widget stops working after a while?

android,widget,broadcastreceiver,appwidgetprovider
I have a flashlight app with a widget. The widget is used to turn the flashlight on and off and does not display main activity or anything. After a few hours, however, the widget does nothing. I mean if you click it, nothing happens. I have two classes to accomplish...

Django-dashing creating your own widgets

javascript,python,django,widget
Ive been trying to create a custom widget for my dashboard which runs using the django-dashing framework https://github.com/talpor/django-dashing http://django-dashing.readthedocs.org/en/latest/ My CustomWidget is defined like so: CustomWidget.py: from dashing.widgets import Widget class CustomWidget(Widget): title = '' more_info = '' updated_at = '' detail = '' value = '' def get_title(self): return...

Kivy: 'NoneType' object has no attribute 'bind'

python,widget,kivy,attributeerror
I was testing out the ActionBar widget of Kivy, here is my program - from kivy.app import App from kivy.lang import Builder from kivy.uix.boxlayout import BoxLayout Builder.load_string(''' <RootWidget>: ActionBar: pos_hint: {'top':1} ActionView: ActionButton: text: "Button" ''') class RootWidget(BoxLayout): pass class MainApp(App): def build(self): return RootWidget() if __name__ == "__main__": MainApp().run()...

Angular JS conflict with Jquery

jquery,angularjs,angularjs-directive,widget
I am developing a widget using Angular. I have an index.html file and script.js file. From the index.html i included the script.js file. The scripts.js file is checking the Angular is already loaded or not. If the Angular is not loaded then latest Angular.min.js (tried 1.3.14 version) is dynamically appended...

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

solved! Placing content in columns

javascript,html,css,widget
There are 3 skills lines and i want them to be placed one next to another, in 3 columns, and i want to create the 4th column too! Originally, it's like this _ _ _ _ and i want like this __________ _________ ______________ ________________ __________ _________ ______________ ________________ _________...

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

Login/Register and Currency Widget in Header Wordpress

php,css,wordpress,header,widget
Woocommerce, Wootique Theme, Currency Widget. Right what I want to do it to have the currency converter plugin and my Login/Register link in the in the top right corner of the header to the right of my logo like so: Login/Register |CURRENCY BOX| (On the same row) The currency converter...

Update widget when preferences changed using custom broadcast

android,widget,android-broadcast
I need to update my app's widget every time the settings are changed by the user. I have a settings activity: import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; public class SettingsActivity extends Activity implements SharedPreferences.OnSharedPreferenceChangeListener { public static final String customIntent = "CUSTOM_SETTINGS_CHANGED"; @Override protected void onCreate(Bundle savedInstanceState) {...

Tkinter: widgets not highlighting on event

python,tkinter,widget
I'm running Python 2.7.9 on a Mac. I've been unable to figure out why it is when I run my programs that only the Entry Widgets highlight each time I hit the Tab key to move to the next widget. Following is some test code. When I run the script...

how to change bg color of button after pressing and get back to previous color

python,button,tkinter,widget
In the below program i want to change the background color of the button to green after pressing it and changed color should remain for 2seconds and later change back to original color. Is there a way to do? import tkinter as tk class MyGui(tk.Tk): def __init__(self): super(MyGui, self).__init__() self.create_widgets()...

Make QMenu have equal to parent (QPushButton)

c++,qt,widget,size,width
I have a QMenu which is assigned to a QPushButton and pops up when the button is pressed. It looks like this: However, I'd like to have the width of the menu to be equal the width of the button because as it is now it looks ugly and it's...

Problems while running Yii2 kartik Export Extension

php,widget,yii2,yii-extensions
I'm new to Yii and I'm developing a database application that reads tables from MySQL. I needed the user to be able to export data as CSV or PDF, so I downloaded Kartik Yii2 Export Extension. I don't know how am I supposed to configure my settings to run this...

Editing Wordpress Widget CSS

css,wordpress,widget
I'm working on my school newspaper's wordpress website, and I'm trying to indent the content of the rotating tweets widget by 15px. I've tried adding the following code to the wordpress theme editor's style.css sheet, but it hasn't made any noticeable changes: .rotatingtweet{padding-left: 15px;} When I add the same line...

Widgets to switch between screens

android,widget
I would like to have in my activity the widget like this in the top of that screen. I do not think about clock, but about that 5 balls, and I want to use it the same way - when I change screen then white ball is changing too. I...

Tkinter: Does grid layout manager override the parent widget's predifined dimensions?

python,tkinter,widget,gridlayoutmanager
I noticed each time I create a Tkinter widget and set its dimensions either during the widget instantiation or by configuring them later, these last ones take no effect as soon as I add child widgets inside the parent one where I organize them using the grid layout manager. My...

WordPress widgets: how to change the automatically created “style” attribute of the surrounding HTML

wordpress,widget,wordpress-theming
I have copied the twentythirteen Wordpress theme to dive into Wordpress development. I want to change the look of my footer, so I used the Firefox inspector to play around with it. The widgets in my footer sidebar have the following HTML around them: <aside style="position: absolute; left: 0px; top:...

How to specify separate toolbar group for widget buttons?

widget,ckeditor,toolbar
By default CKEditor places widget buttons in the toolbar 'insert' group. I'd like to specify a custom group on the toolbar only for my widget buttons. How can I do that?

JQuery tablesorter math widget with output widget

jquery,widget,tablesorter
I am using jquery tablesorter and was able to use the filter and math widget. I am now trying to export the table to csv with the use of the output widget and it's working fine except I cannot find a way to export the footer that uses the math...

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

Android Widget, Intent on RemoteViews not fired in data present

android,android-intent,widget,intentfilter
In my AppWidgetProvider class, I'm programmatically adding some Button to the main layout through RemoteViews: static void updateAppWidget(......) { .. RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.main_widget); for (int i=0; i<maxViews, 4); ++i) { RemoteViews button = new RemoteViews(context.getPackageName(), R.layout.my_button); String number = numbers.get(i).getCode(); // Test1 Intent actionIntent = new Intent("MyIntent");...

Android Widget Onclick Button or Method or Method from another Activity?

android,methods,widget
I have a normal app with a widget(widget is an image button). When the widget is clicked I want to call a method from the MainActivity or a method from the WidgetProvider activity or attach an onClick to the widget which does something when I click it. I've read the...

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

Use different library instead of jQuery Mobile for