Pycharm: enable tooltip for variables / names / tokens with mouse hover? - django

I'm looking for something similar to how Visual Studio will show tooltips when hovering the mouse over anything in the editor (type information, method details, other useful information, etc.). Is this a configurable option in PyCharm? I've yet to find it.
Thanks.

It's available via quick documentation hotkey only, vote for the issue so that it also works on hover.

Related

Display runtime variables within Debug console in WebStorm

I've switched over from IntelliJ to WebStorm to do some front-end development and I seem to have lost the ability to view the runtime variables. Can someone point out the configuration to allow me to do this?
When I'm debugging, currently I see this:
When I used to see similar to:
Simply, I've lost the Variables tab. Can anyone help me configure the options? I've tried using https://www.jetbrains.com/help/rider/Inspecting_Variables.html
...to no avail
Thanks in advance
This view should definitely be there. Please try restoring the Debug tool window layout by pressing the corresponding toolbar button:
does it help?
If it doesn't, please contact JetBrains support, providing your idea.log (Help | Show log in Explorer) and information about Node.js version being used

Not able to select Menu items in NASPT Exerciser using pywinauto

I am using pywinauto to automate NASPT Exerciser tool.
app.IntelNASPerformanceToolkitExerciser.PhotoAlbum.Click().
to click photo album button,
app.IntelNASPerformanceToolkitExerciser.all.Click()
to click all. It's not selecting all buttons.
app.IntelNASPerformanceToolkitExerciser.MenuSelect("Configure->NASPT Tool")
It is throwing error saying can't select Menu to this object.
Is there any other way to achieve above problem?
Can anyone help about this?
This is .NET application. pywinauto has very limited support of .NET controls. So you need to use Windows UI Automation API for such toolbar. Precisely InvokePattern should help with pressing toolbar button.
Or you may try to click button by hard coded coordinates like that:
app.IntelNASPerformanceToolkitExerciser.Children()[54].ClickInput(coords=(300, 10))
This hard-coding way may be better than dealing with quite complicated UI Automation API.
BTW, you may get pywinauto clone with .NET programmatic names support. Just download it as zip and run python setup.py install.
With that mod you can code so:
app.IntelNASPerformanceToolkitExerciser.toolStrip.ClickInput(coords=(300, 10))
I've just checked it. I think hard-coded coordinates is OK here because the software is end-of-lifed and will not be changed. There are not so many unsupported .NET controls.

How to auto-generate settings/options dialog box?

Using Visual Studio 2010 C++ with MFC. The number of configurable settings in my application is slowly creeping up. I managed to design a settings class where adding a single line will add a setting to the program and support reading/writing that setting to my ini file. However, I still need to go into my gui editor and edit the options dialog box, moving text boxes around, aligning labels etc. which is kind of a pain.
How would I autogenerate my options dialog box such that I could give it a data structure and it could generate the option interface for me? It's okay if it's something like a list box. I'm thinking something like the the Visual Studio properties dialog box which has the look of something that's programmatically generated:
I'm just trying to get a conceptual overview of what controls would be best and how to piece it together. Of course if there is a link to a web page discussing this that would be great.
You want the CMFCPropertyGridCtrl class. It was introduced in one of the MFC updates, but I'm not sure whether or not they come pre-installed with Visual Studio 2010; you may need to install something extra.

Tab control like in FireFox in native windows app

I would like to enable tabbing for my application. And so far it seems I could use a tab control. The problem with it is, though, that it creates a border around the client area. What I want, is more like a FireFox tab control, that only takes up a row in the application and doesn't create any frames around client area.
Does anyone know if it is possible with the default control?
I'm using MFC, but that shouldn't change things much I hope.
I'm pretty sure the tab control consists of two parts - the tab headers and the tab page. So you should be able to use the tab header only. It will take more work, but I think you can get what you want.
Look at CTabCtrl and CHeaderCtrl - will those do it? I've never customized them, but it seems possible.
There is also a CPropertySheet that's a good control. But so far it seems disabling and changing some things is simply impossible. No solution for the problem except full ownerdraw path.

C++ style menu bar in VB.NET?

Ive been looking a long time for this, but can't seem to find it. When I add a menu strip in vb .net, it looks like this:
http://img19.imageshack.us/img19/4341/menu1sbo.jpg http://img19.imageshack.us/img19/4341/menu1sbo.jpg
and I want it to look like the WinRar, Calculator, Notepad etc menus like this:
http://img8.imageshack.us/img8/307/menu1a.jpg http://img8.imageshack.us/img8/307/menu1a.jpg
From what I gathered, in vb 6 you could create a mainmenu and do it this way, but in vb .net it seems like all there is is ugly menustrip.
Thanks
You may have to get dirty and create a CustomRenderer(ToolStripProfessionalRenderer) to apply to the ToolStripManager
Without rehashing to much, this doc looks like a nice overview or you can always opt for the Microsoft tutorial
menustrip is derived from toolstrip
You may need to enable XP theme support in your project settings. To do this, go to My Project in your Solution Explorer, and make sure "Enable XP Visual Styles" is checked under the Windows application framework properties group down near the bottom of the Application tab.
If this doesn't work, you might need to create an application manifest as described in this MSDN article.
This question is quite old but for anyone else interested, you can find this type of menu in the .NET framework components. Just right click the Toolbox -> Choose items -> .NET Framework Components and filter for MainMenu. Works exactly like any other menu strip from what I've seen so far.