PyCharm, open new window for each "View as DataFrame" - python

In Debug mode, I would like PyCharm to open a new window (not a new tab!) for every "View as DataFrame" click I do.
Right now, they are opened as tabs, which makes it very difficult to compare.
Other posts suggest to klick the "Open in editor" button to then move it. This works but it is annoyingly cumbersome. And I remember in the past multiple windows opened (maybe in the community edition?)

Related

How can I close automatically or block modal(?) popup?

modal popup and marked blue left below
Is there any way to block modal(? - this is my understing for the box) popup automatically? I'm working on Mac, The bule color marked in left below is saying "do not open one day". I clicked check-box but it shows continuously. My searching result is such popup is called modal/layered popup - I have no idea for such technology. Please help how to block or click automatically by using Pythoin, javascript or Apple script. I'm using Keyboard maestro app so I can put such code before or after opening site which has modal(?) popup. I need to open 8-10 sites so need help.
tried to remove cookies but appear continuously. I think it's better click check-box automatically. Alternative if any is also good if can click "do not open one day" checkbox automatically.

Open new window - tkinter/tk taskbar/dock

How can I can a function and create a function for the icon context menu? I want to make the iconic Open New Window function pop-up when you right click on the icon menu in the taskbar/dock. See this question for more info on this kind of question.
Places I have looked but found nothing:
https://www.tcl.tk/man/tcl8.5/TkCmd/tk_mac.html#M15
https://pyinstaller.org/en/stable/feature-notes.html#open-event-handling-in-a-tkinter-based-gui-application
While there are a tiny subset of apple events that you can benefit from the DockMenu is not accessible directly via tkinter. Turns out mac is not really open for modifications and even smaller tasks can be hard. You could consider to use a system tray icon instead.

Python IDLE Unable to Be Opened

A little context
I'm using Windows. I installed Python and wrote a script for it. Before long, it became necessary to install packages. To do so, I needed to know what was the location of my Python folder, so that I could enter this location in the command prompt as in this video at 7:55. My idea for how to achieve this was to go into the "This PC" app (as in, enter the words "This PC" into the search bar which is next to the start symbol in the lower left-hand (LLH) corner of the screen) and search within that app the phrase "Python" (as in, enter "Python" into the search bar which is in the URH corner of the window which is opened when the symbol "This PC" is clicked). Then, I just made a new folder titled 'Python 3.7' on my desktop and dragged all of the search results into that new folder.
Slightly more detailed explanation of the problem
Now, everything can be found in that folder, and I find it to be reasonably organized, but most things no longer function if I attempt to click on them. For example, clicking on the 'IDLE (Python 3.7 32-bit)' shortcut has no effect whatsoever. The shortcut which I have pinned to my taskbar also inexplicably no longer does anything when it is clicked. Going to the .py script I wrote, right clicking, and selecting "Open" has no effect; on that same menu, selecting "edit with IDLE" opens a window asking "How do you want to open this .py file?" I select the option "Python" and click OK, and nothing happens.
What I expect to be the most relevant information
The thing titled 'IDLE (Python 3.7 32-bit)' which I click on is categorized as a Shortcut. When I right-click and go into the properties, it says the Target Location is
Python37-32
which is a folder. It further says Target:
\Programs\Python\Python37-32\Lib\idlelib\idle.pyw"
and Start in:
"C:\Users\Myname\Desktop\Python 3.7\python\Python37-32\"
whereas the current location of the Shortcut is
C:\Users\Myname\Desktop\Python 3.7
Essentially, I have rearranged folders without much thought, and inadvertently messed something up?
Does someone happen to know, at least, what this issue is - or, perhaps, to be so gracious as to refer me to a help page on the subject - so that I may research the issue?

How to open a new tab in robot framework

I've looked but i cannot seem to find an 'Open New Tab' option for the robot framework. I've seen things that are close but not quite what i want. The goal is to be in one tab, do something that would send an email, and then open a 2nd tab to check the email. I'm using BrowserStack so a second window is not an option.
I attempted to use the image horizon library to send a Command+T but it ends up performing that command in whatever window has focus at the moment. When running from the terminal, it'll open a new terminal tab instead of sending the combination to the browserstack window.

python open windows explorer

Please image such a situation: A local file's icon is displayed in a GUI, right click the icon, a context menu pops, with the option: show file in explorer. Click the option, then a explorer window opened, with the particular file selected. Many editors have such a feature: show in folder or show in explorer
In fact, the GUI is built by PyQt, my first thought is simple, just open a subprocess and pass the command line:
explorer /select, a_full_path_name
The behavior is indeed what I need, but when click "show in folder" again, a new explorer window will be opened, even the old one exsits! How about a naughty boy clicking "show in folder" dozens of times in a breath? So I need just one window, if an old one exists, just raise it to the front.
The command start /D a_path . may disappoint the naughty boy(run it several times, only one window.) however, there is no option to highlight a selected file, thus also disappoint me...
As mentioned above, many editors have such a "show in folder" feature,
but to my suprise, PyCharm "Show in Explorer" will open multiple windows with multiple clicks on the same file, and also the CodeBlocks "opening containing folder", however programmer's notepad "open containing folder" will always open just one folder on the same file.(To be honest, I have only the 3 editors in my PC except the windows notepad :)
My Question:
Can the feature mentioned above be achieved just by windows cmd?
If can not, Is there a python way to achieve that?
In fact, I found several related questions in stackoverflow, for example,
but my problem is unsolved, would somebody give me a ride?
Finally, some nice guy guided me to the answer.
It's from https://github.com/exaile/exaile/blob/master/xl/common.py#L350
in py3+
import ctypes
ctypes.windll.ole32.CoInitialize(None)
upath = r"C:\Windows"
pidl = ctypes.windll.shell32.ILCreateFromPathW(upath)
ctypes.windll.shell32.SHOpenFolderAndSelectItems(pidl, 0, None, 0)
ctypes.windll.shell32.ILFree(pidl)
ctypes.windll.ole32.CoUninitialize()
in py2+
Just give a unicode path.
note: ILCreateFromPathW (Unicode) and ILCreateFromPathA (ANSI)

Categories

Resources