FAQ Database Discussion Community


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

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

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

getting values in R from tkentry() widgets

r,user-controls,widget,tcl,tk
I'm trying to create a small interactive window in which user (for now me) can enter specific information regarding power calculations (test name, number of groups, type of data) in order to perform the correct kind of power calculation. I know how to do this directly in R, but I...

Kivy - Create new widget and set its position and size

python,python-3.x,widget,kivy,custom-widgets
got a little problem. So Iam trying to create my own widget, and i have succeed, only except for setting its size and position right(to be same as its parrent). class Story(App): def build(self): return MyWidgets().init() The app has GridLayout as a holder, into which i want to pass the...

Text widget to fill half of screen

python,tkinter,widget
I have a python tkinter program and i have two text widgets that need to be side by side. How can i get the two widgets to take up exactly half of the window which is 400 x 400 px ? My Code is here import tkinter class MyApp: def...

Awesome desktop manager widgets

lua,widget,awesome-wm
I came upon this problem before, but only now it really renders awesome desktop manager useless. I was searching how to connect to Wifi with awesome. Found Gigamo Wifi Widget. Cool, how do I eat it? The awesome wiki entry on widgets does not really answer this question. I know...

Yii2 - access model from database in 2amigos gallery widget

database,model,widget,yii2
Hi. Does anyone know how to access model from database in 2amigos gallery widget in order to display a image stored in local folder using the path stored in database. After intall the widget via composer, my view has the code: <?php $items = [ [ 'url' => 'imagens/portfolio/1.jpg', 'src'...

Why does AppWidgetManager update Intent of all RemoteViews for Widgets?

android,android-intent,widget,android-widget
I have a widget defined in my Android app that maps to a specific lightswitch which is chosen by a configuration Activity. Each instance of the widget can map to a different lightswitch and tapping the widget toggles the light on and off. Here's the code from the Activity that...

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

Find the time since index.php was last visited, widget

php,html,widget
Ive done a fair amount of trawling the internet to find a solution to this issue however am still yet to find a real answer. I would like to have a widget on my site that shows the user how long in seconds, it has been since someone had last...

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

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

Includable Description on Blogger Blogspot

widget,blogger,gdata,blogspot
On the header widget, it has: <b:include name='description'/> And I want to reference it in the post-body (inside Blog widget), with: <b:includable id='description' var='a'><data:a.description/></b:includeable> But it wont print out the post description, is the code wrong? or it just cant be referenced across widgets? I've tried modify the header widget...

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 __________ _________ ______________ ________________ __________ _________ ______________ ________________ _________...

Fetching query string parameters passed in a javascript file

javascript,jquery,widget
I have used this tutorial to create a JS based widget. One thing I need to do is to pass query string parameters in JS file. I tried document.location.href but it gave the URL of page where widget was placed(which is quite obvious) Code is given below: <script src="http://example.com/widget.js?id=2" type="text/javascript"></script>...

Kivy Widget does not accepts properties and commands

python,widget,kivy
I wanted to make my first Kivy game, with enemies which run over the screen and the player is supposed to kill the enemies by clicking on them. I created an Enemy class which is part of a level class, both are subclasses of the class Widget. I made a...

Appy Wordpress Widget to Widget area

php,html,wordpress,widget,area
I'm working the first time with WordPress, now I'm trying to add a custom Widget to an HTML box. The HTML: The blank News box I started to read a bit about widgets and the tutorials told me to create a new Widget area inside my functions.php document, which i...

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

Python Kivy make scatter unselectable

python,animation,widget,kivy,scatter
I am making animations in my Kivy app, but of all available classes, only scatter seems to animate properly. The problem is, when I touch the scatter, my on_touch_move() event simply doesn't work. I wanted to make unselectable scatter with self.do_rotation = False self.do_scale = False self.do_translation = False but...

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

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

wxpython How to change the values of widgets in other panel

widget,wxpython,panel
My frame was split in three panels, In PanelTwo, There is a TextCtrl, In PanelThree , There is a TextCtrl too, When I input something in the TextCtrl of PanelTwo, I need change the value of the TextCtrl in PanelThree, How to do it? # -*- coding: utf-8 -*- import...

How To Show The Current Time in TextView in Widget

android,time,textview,widget,updatable-views
I want to show the current time in updatable textView I can't find the true way to make it I want it to be updated every minute Please anyone can help me ? Thanks

Wordpress Widget: Don't display $before_title and $after_title if title is empty

wordpress,widget
If the wordpress widget title is blank or empty, then don't display the $before_title and $after_title wrapping the title. Right now if the title is empty, you can end up with . If there are margins set for h2.widgettitle then you end up with blank space. In reality, $before_title and...

Filters in CGridView not filtering

yii,filter,widget,cgridview,dataprovider
Can You check why filtering is not working in CGridView? When i type for exaple 'Adam' in filter field, nothing happens. I can't find my mistake, everything looks ok but not working. I helped with that article: Yii: CGridView Filter examples CONTROLLER <?php class UzytkownikController extends CController { public function...

Use different library instead of jQuery Mobile for