Is there a way to stop the file tabs from repositioning when saving in spyder? - spyder

When working with multiple files, I have them visible in tabs, where I go back and forth between them. But every time I save, it repositioned the tab for file that was just saved to the right. But often there are files I still want to work with the the right of it. So I have to use the small arrow keys to get back to those files. Is there a way to keep all the file tabs in place when saving?

Related

Does Safari on iPhone support selecting multiple files for a <input type=“file” multiple=“multiple”> element?

In iOS 12 and 13, when selecting the HTML <input type="file" multiple> the browser/webview displays three options to upload files: take a photo, select from the photo gallery, or browse the file system.
It's possible to select multiple files using the photo gallery, but if I want to upload other types of files using the browse the file system option, multiple file selection is not possible and I can only select one.
Is this behavior is expected? If it is a bug, is there any walkarounds? In short, how can I handle this on the development side?
There are currently (in iOS 15) two ways to do this. I do not know to what extent this might also work in iOS 12/13.
Choose Files
Pick Choose Files
Navigate to your location
Tap the circle menu at the top with the three horizontal dots
Tap "Select"
Tap the icons of the files you want to select
Tap "Open"
Drag and Drop
This requires two fingers and maybe a bit of practice ;)
Leave the form by swiping up to the App Switcher (or use the home button)
Go to your files app
Tap and hold on a file icon and then drag the file a bit. This can be tricky; if you start dragging too soon then you just scroll the whole page, if you start dragging too late then the long-click context menu will come up instead.
While still holding the now-floating icon with one finger, use another finger to tap on additional icons and add them to your selection. You can even navigate to other folders to gather more items, but be careful about releasing the selected items too early—this could result in moving items to whichever folder you have navigated to.
While still holding the floating icons with one finger, swipe out of the Files app with another finger and make your way back to the upload form in Safari.
Drag the floating icons over the Choose Files button and release — the dropped files are now ready to be uploaded.

Changing project icon

So I started a project by adding my code to an existing project. The previous project used a res file to hold its icon, and loaded the res in the dpr.
Anyway, if I go to the Project->Options->Application... I should be able to decide what icon I want to use for my project ( using Load icon... button)
But my icon and Load icon button are disabled, and I have no idea on how to re-enable them.
I really dont want to start a new project from scratch now, and move the whole code there. It would be a huge waste of time.
I never had this problem before...
Anybody has any idea why this happens?
Again, how do I change my application's icon?
You should be able swap the icon image just use the same name and delete the old image.

PyQt: Reorder tabs in QTabWidget

I made my GUI using Qt Designer and I have a QTabWidget with multiple tabs. My tabs contain specific tools that are used in my app. Now I would like to set my tabs closable and movable so I could save the order of my tabs and load it when the app starts. The problem is, I don't know how to reorder my tabs when the application loads. Is this possible?
You can move tabs by accessing the QTabBar object associated with the QTabQidget
QTabBar has a method moveTab() which will allow you to reorder tabs.
So you would do something like my_tab_widget.tabBar().moveTab(old_position, new_position) where old_position and new_position are integers which specify the tab to move and the position to move it to respectively.
Lots of details in the c++ documentation (it translates to python pretty easily). See QTabBar docs and QTabWidget docs

PhpStorm 6.0.1 - Shortcut to save activates search bar

So i got the following problem. When I'm working inside the editor and press STRG + S (what should be save) the document gets saved, but what happens also is, that a search bar gets popped up and the next thing I write get's written into the search bar instead of the editor itself. I then have to click into the editor again to write there. This is pretty annoying since I save quite a lot. In the Keymapping STRG+S is set for Save all, so this doesn't make really sense for me.
As a comparison here two screenshots. The first one shows how it looks like, when I write something and didn't save yet. The second one shows what happens, as soon as I press STRG+S
As you can see a search bar pops up and gets the focus of the cursor. This is what I'm trying to solve but can't find a solution for.
Update to the latest version, 6.02, your problem should be solved.

Refactoring - How to prevent refactorings tab showing?

In Delphi XE, I use the rename variable refactoring (Ctrl+Shift+E) a lot of the time to make my code easier to understand by giving more meaningful variable names, for example:
That is all good but I have one slight issue regarding workspace when I use this. I like to keep the code messages etc pinned to the bottom, they only appear when I hover my mouse over them - this is my preference to allow more space for the editor.
Now, when I use the rename variable refactoring, the dialog has the checkbox: View references before refactoring as shown from the image above. I have this unchecked as I generally don't need to oversee what is been changed etc, if needs be I just undo it.
Here is my issue, with that unchecked I would of hoped for the refactoring to of performed silently, but no I still get the refactorings window showing up underneath:
It might not be considered a major issue but every time I have to manually close the refactorings window is just wasting time and is becoming a nuisance.
I noticed if you click on the refactorings tab in the editor there is an option to hide, but this is not permanent as it will come back the next time you refactor anyway.
Is there an option I may have missed somewhere to prevent the refactorings window from displaying in the code editor?
…to prevent the refactorings window from displaying in the code editor
How about moving it elsewhere? Undock it from the bottom of the editor window and dock it at a different place. (Unless you've hidden all the side panels.)

Resources