Python PYQT5 Draggable Window/Tools - python-3.x

I can't find the term for it. But What I am looking for is help on how does do a Window that consists of multiple widgets.
Many software consists of this feature where you could drag and drop a window/tool window.
It drags and drop in a form of layouts and it's resizeable by dragging.
Image 1 is where you could drag and drop.
Image 2 is the entire thing. where the layout is fluid and can be resized.
My PYQT5 mainwindow consists of the QtabWindows and QlistWidgets.
Tabs should be able to split/join and create new layouts as such in the picture.
All help is greated appreciated

Related

Is there a way of adding a scrollbar horizontally and vertically to a Text Input in Kivy?

I am new to Kivy and Pyhton and I want to put a scrollbar horizontally and vertically to a Text Input. I don’t want to use a ScrollView, because I am making a desktop app and it is not that intuitive as the user has to click and drag up and down or sidewards in the Text Input". I also found on the internet how to make a draggable scrollbar using a slider (https://github.com/kivy/kivy/wiki/A-draggable-scrollbar-using-a-slider), but I have’t been able to add it to the Text Input. Could anyone help me please?

I cannot move the items freely on layouts in Xamarin Android

I can drag and drop items but I cannot change the position of items on layouts in Xamarin
If you use linear layout, items will be snapped to the grid. For a free moving, change the layout to a relative.
Xamarin does not support drag and drop.
You can only drag and drop a component from the toolbar to add it to layout.
You need to manually set the position of the component​ if you use frame or relative layout.
If you use linear layout component are added one by one horizontally or vertically​.

How to make a vaadin combobox overlay wider than container element?

I have a vaadin-combobox inside a slim grid cell/column, when I open the combobox the contents is restricted horizontally to the space in the cell and I can't see the values. Vertically it overlaps correctly. I have been searching for some CSS to make the overlay of values wider like you do with a normal HTML picklist but I couldn't find it.
Thanks for any pointers.

Motif: How to move Scroll Bar automatically without user intervention

I have a scrolled window in my application, in which I have created a drawing area widget. In the drawing area, I have placed multiple images. When the user enters information about an image in a search box, the appropriate image gets highlighted.
My problem is how do I get the application to scroll automatically to the highlighted Image box without the user using the scroll bar. The scrolledwindow should automatically move the view region, to display the region where the highlighted Image is present.
The scrolling policy used on the scrolled window is XmAUTOMATIC.
Any pointers would be greatly appreciated.Thanks in advance.
Try XmScrollVisible() if this does not work then you will need to:
1. Find out the size of the work area.
2. Find out the size and position of the clip window.
3. Find out the max/ min values for the horizontal scrollbar.
4. Use XmScrollBarGetValues() for the horizontal scrollbar to get its position within the max/min values.
5. Do some math magic to determine how much to move the horizontal scrollbar to get the work area to show through the clip window.
6. Call XmScrollBarSetValues() with Notify = True.
7. Repeat for the Vertical scrollbar.
HTH

Which android layout to use for distributing variable width buttons to fill a screen?

I am getting started with Android, trying to write a "concentration" game for kids where a screen full of text is separated into buttons, filling the screen (one word per button)
The buttons should wrap to the contained text, so longer words will have longer button widths.
Once a row fills up, the next button should flow to the next row, and so on, until the whole screen is filled with evenly spaced variable width buttons.
The number of rows and number of buttons per row varies based on screen size (and as mentioned, button width)
I could use a vertical linear layout, then insert horizontal linear layouts to contain the row text. However I don't see how to make those widths and number of rows vary based on the screen size and text size.
I presume I need to create my own custom layout, something like FlowLayout in Spring - if so, can you recommend a tutorial for how to do so?
Check android's API Demos
Animation->DefaultLayoutAnimation (for example)
LayoutAnimationsByDefault.java & layout_animations_by_default.xml (for source)
It uses GridLayout and with a bit of modifications of mentioned example, it will be useful for your case..It's flexible, it's available since API Level 14, but it's available trought support/compatibility library or 3rd party library .
Hope this will help.. Cheers ;)

Resources